1
0
Fork 0
mirror of https://github.com/diamondburned/arikawa.git synced 2024-11-09 16:35:12 +00:00
arikawa/utils/json/option/string.go
2020-05-11 05:24:59 +02:00

11 lines
269 B
Go

package option
// String is the option type for strings.
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 }