mirror of
https://github.com/ent/ent.git
synced 2026-05-24 09:31:56 +03:00
entc: add relevant example-code for bytes field
Reviewed By: alexsn Differential Revision: D16639870 fbshipit-source-id: 948cb0256fc8691a6c2194ee31db984d6ac1aede
This commit is contained in:
committed by
Facebook Github Bot
parent
66ea49049a
commit
c5259c8528
@@ -80,7 +80,7 @@ func ExampleUser() {
|
||||
SetAge(1).
|
||||
SetName("string").
|
||||
SetPhone("string").
|
||||
SetBuffer(1).
|
||||
SetBuffer([]byte{}).
|
||||
SaveX(ctx)
|
||||
log.Println("user created:", u)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user