Skip to content

Instantly share code, notes, and snippets.

@yutakahashi114
Created January 19, 2020 13:18
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/5d986d04aeffc3b63173f6e3608719fd to your computer and use it in GitHub Desktop.
Save yutakahashi114/5d986d04aeffc3b63173f6e3608719fd to your computer and use it in GitHub Desktop.
us := []user{}
count, err = engine.
Limit(10, 10).
Asc("id", "first_name").
Desc("last_name").
FindAndCount(&us3)
if err != nil {
log.Println(err)
return
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment