optional

package
v0.0.0-...-f923362 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 10, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type String

type String struct {
	// contains filtered or unexported fields
}

String represents an optional string value.

func NewString

func NewString(value string) String

NewString returns an optional string with given value.

func (String) Present

func (s String) Present() bool

Present returns whether it contains a value or not.

func (String) Value

func (s String) Value() string

Value returns the value of the optional string.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL