mirror of
https://github.com/diamondburned/arikawa.git
synced 2024-11-08 16:04:41 +00:00
13 lines
270 B
Go
13 lines
270 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
|
|
}
|