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

merge main

This commit is contained in:
dudaodong
2023-03-13 19:44:44 +08:00
9 changed files with 264 additions and 74 deletions

View File

@@ -134,13 +134,16 @@ func ExampleStructToUrlValues() {
Name: "test",
Status: "completed",
}
queryValues1 := StructToUrlValues(item1)
queryValues1, err := StructToUrlValues(item1)
if err != nil {
return
}
item2 := TodoQuery{
Id: 2,
UserId: 456,
}
queryValues2 := StructToUrlValues(item2)
queryValues2, _ := StructToUrlValues(item2)
fmt.Println(queryValues1.Get("id"))
fmt.Println(queryValues1.Get("userId"))