Skip to content

Instantly share code, notes, and snippets.

@yutakahashi114
Created January 19, 2020 13:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yutakahashi114/0e666a5d1a7b8264d636ad478cecf38c to your computer and use it in GitHub Desktop.
Save yutakahashi114/0e666a5d1a7b8264d636ad478cecf38c to your computer and use it in GitHub Desktop.
us := []user{
{
FirstName: "太郎3",
LastName: "テスト",
},
{
FirstName: "太郎4",
LastName: "テスト",
},
}
affected, err = engine.Insert(&us)
if err != nil {
log.Println(err)
return
}
if affected != 2 {
log.Println("Unexpected Affected")
return
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment