You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently marking targets as optionals is not possible. The resulting struct will contain basic/composed type regardless.
structConfigtype {
Aint`yaml:"a"`
}
Proposed behavior
Providing an interface to user to let specify which targets can be optional. Then, implement additional types based on contains the value as a field, and also contains the state of value in another field, named IsSet.
Current behavior
Currently marking targets as optionals is not possible. The resulting struct will contain basic/composed type regardless.
Proposed behavior
Providing an interface to user to let specify which targets can be optional. Then, implement additional types based on contains the value as a field, and also contains the state of value in another field, named
IsSet
.See also
sql.Null
type providing Go users a method to distinguish set and zero values returns from queries with Go genericssq.Null
The text was updated successfully, but these errors were encountered: