How to set a nullable field back to null? #1394
Replies: 1 comment
-
s := null.StringFrom("hello") // non-null string
s.Valid = false // set to null |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
stephenafamo
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
This might be somewhere in the documentation but I couldn't find it.
If I have a nullable field, say
null.String
and I have set it to a non-null value, how am I supposed to set the stored value back tonull
in the database?Beta Was this translation helpful? Give feedback.
All reactions