optional

package
v0.0.0-...-830e1ca Latest Latest
Warning

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

Go to latest
Published: May 6, 2026 License: MIT Imports: 1 Imported by: 19

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) UnmarshalJSON

func (s *String) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaler interface.

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