Skip to content

Commit

Permalink
Update README: Change "User" to "WithJSON" (#260)
Browse files Browse the repository at this point in the history
Co-authored-by: caozilong <caozilong@zuoyebang.com>
  • Loading branch information
fantasyczl and caozilong authored Jul 12, 2024
1 parent 268c32e commit f585a5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ type UserWithJSON struct {
Attributes datatypes.JSON
}

DB.Create(&User{
DB.Create(&UserWithJSON{
Name: "json-1",
Attributes: datatypes.JSON([]byte(`{"name": "jinzhu", "age": 18, "tags": ["tag1", "tag2"], "orgs": {"orga": "orga"}}`)),
}
Expand Down

0 comments on commit f585a5e

Please sign in to comment.