1
0
mirror of https://github.com/duke-git/lancet.git synced 2026-02-11 16:22:26 +08:00

fix: fix goline error

This commit is contained in:
dudaodong
2023-01-05 14:55:47 +08:00
parent d8505d1a5f
commit d9c6294775
5 changed files with 47 additions and 14 deletions

View File

@@ -664,7 +664,10 @@ func ExampleSortByField() {
{Name: "b", Age: 15},
{Name: "c", Age: 100}}
SortByField(users, "Age", "desc")
err := SortByField(users, "Age", "desc")
if err != nil {
return
}
fmt.Println(users)