arikawa/utils/json/nullable/string.go

13 lines
275 B
Go

package nullable
// String is a nullable version of a string.
type String *string
// EmptyString is a zero-length string.
var EmptyString = NewString("")
// NewString creates a new String with the value of the passed string.
func NewString(s string) String {
return &s
}