null

package
v0.0.0-...-39bad16 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2021 License: MIT Imports: 3 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 {
	null.String
}

func NullString

func NullString() String

func StringFrom

func StringFrom(s string) String

StringFrom creates a new String that will never be blank.

func (String) MarshalYAML

func (s String) MarshalYAML() (interface{}, error)

MarshalYAML implements yaml.Marshaler. It will encode null if this String is null.

func (*String) UnmarshalYAML

func (s *String) UnmarshalYAML(unmarshal func(interface{}) error) error

UnmarshalYAML implements yaml.Unmarshaler. It supports string and null input. Blank string input does not produce a null String. It also supports unmarshalling a sql.NullString.

Jump to

Keyboard shortcuts

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