Documentation ¶
Index ¶
- type Bool
- func (b *Bool) Clear()
- func (b Bool) Get() (bool, bool)
- func (b Bool) IsSet() bool
- func (b Bool) MarshalJSON() ([]byte, error)
- func (b Bool) MarshalYAML() (interface{}, error)
- func (b *Bool) Set(value bool)
- func (b *Bool) UnmarshalJSON(data []byte) error
- func (b *Bool) UnmarshalYAML(unmarshal func(interface{}) error) error
- type Byte
- func (b *Byte) Clear()
- func (b Byte) Get() (byte, bool)
- func (b Byte) IsSet() bool
- func (b Byte) MarshalJSON() ([]byte, error)
- func (b Byte) MarshalYAML() (interface{}, error)
- func (b *Byte) Set(value byte)
- func (b *Byte) UnmarshalJSON(data []byte) error
- func (b *Byte) UnmarshalYAML(unmarshal func(interface{}) error) error
- type Complex128
- type Complex64
- type Duration
- func (d *Duration) Clear()
- func (d Duration) Get() (time.Duration, bool)
- func (d Duration) IsSet() bool
- func (d Duration) MarshalJSON() ([]byte, error)
- func (d Duration) MarshalYAML() (interface{}, error)
- func (d *Duration) Set(value time.Duration)
- func (d *Duration) UnmarshalJSON(data []byte) error
- func (d *Duration) UnmarshalYAML(unmarshal func(interface{}) error) error
- type Float32
- func (f *Float32) Clear()
- func (f Float32) Get() (float32, bool)
- func (f Float32) IsSet() bool
- func (f Float32) MarshalJSON() ([]byte, error)
- func (f Float32) MarshalYAML() (interface{}, error)
- func (f *Float32) Set(value float32)
- func (f *Float32) UnmarshalJSON(data []byte) error
- func (f *Float32) UnmarshalYAML(unmarshal func(interface{}) error) error
- type Float64
- func (f *Float64) Clear()
- func (f Float64) Get() (float64, bool)
- func (f Float64) IsSet() bool
- func (f Float64) MarshalJSON() ([]byte, error)
- func (f Float64) MarshalYAML() (interface{}, error)
- func (f *Float64) Set(value float64)
- func (f *Float64) UnmarshalJSON(data []byte) error
- func (f *Float64) UnmarshalYAML(unmarshal func(interface{}) error) error
- type Int
- func (i *Int) Clear()
- func (i Int) Get() (int, bool)
- func (i Int) IsSet() bool
- func (i Int) MarshalJSON() ([]byte, error)
- func (i Int) MarshalYAML() (interface{}, error)
- func (i *Int) Set(value int)
- func (i *Int) UnmarshalJSON(data []byte) error
- func (i *Int) UnmarshalYAML(unmarshal func(interface{}) error) error
- type Int16
- func (i *Int16) Clear()
- func (i Int16) Get() (int16, bool)
- func (i Int16) IsSet() bool
- func (i Int16) MarshalJSON() ([]byte, error)
- func (i Int16) MarshalYAML() (interface{}, error)
- func (i *Int16) Set(value int16)
- func (i *Int16) UnmarshalJSON(data []byte) error
- func (i *Int16) UnmarshalYAML(unmarshal func(interface{}) error) error
- type Int32
- func (i *Int32) Clear()
- func (i Int32) Get() (int32, bool)
- func (i Int32) IsSet() bool
- func (i Int32) MarshalJSON() ([]byte, error)
- func (i Int32) MarshalYAML() (interface{}, error)
- func (i *Int32) Set(value int32)
- func (i *Int32) UnmarshalJSON(data []byte) error
- func (i *Int32) UnmarshalYAML(unmarshal func(interface{}) error) error
- type Int64
- func (i *Int64) Clear()
- func (i Int64) Get() (int64, bool)
- func (i Int64) IsSet() bool
- func (i Int64) MarshalJSON() ([]byte, error)
- func (i Int64) MarshalYAML() (interface{}, error)
- func (i *Int64) Set(value int64)
- func (i *Int64) UnmarshalJSON(data []byte) error
- func (i *Int64) UnmarshalYAML(unmarshal func(interface{}) error) error
- type Int8
- func (i *Int8) Clear()
- func (i Int8) Get() (int8, bool)
- func (i Int8) IsSet() bool
- func (i Int8) MarshalJSON() ([]byte, error)
- func (i Int8) MarshalYAML() (interface{}, error)
- func (i *Int8) Set(value int8)
- func (i *Int8) UnmarshalJSON(data []byte) error
- func (i *Int8) UnmarshalYAML(unmarshal func(interface{}) error) error
- type Rune
- func (r *Rune) Clear()
- func (r Rune) Get() (rune, bool)
- func (r Rune) IsSet() bool
- func (r Rune) MarshalJSON() ([]byte, error)
- func (r Rune) MarshalYAML() (interface{}, error)
- func (r *Rune) Set(value rune)
- func (r *Rune) UnmarshalJSON(data []byte) error
- func (r *Rune) UnmarshalYAML(unmarshal func(interface{}) error) error
- type String
- func (s *String) Clear()
- func (s String) Get() (string, bool)
- func (s String) IsSet() bool
- func (s String) MarshalJSON() ([]byte, error)
- func (s String) MarshalYAML() (interface{}, error)
- func (s *String) Set(value string)
- func (s *String) UnmarshalJSON(data []byte) error
- func (s *String) UnmarshalYAML(unmarshal func(interface{}) error) error
- type Uint
- func (u *Uint) Clear()
- func (u Uint) Get() (uint, bool)
- func (u Uint) IsSet() bool
- func (u Uint) MarshalJSON() ([]byte, error)
- func (u Uint) MarshalYAML() (interface{}, error)
- func (u *Uint) Set(value uint)
- func (u *Uint) UnmarshalJSON(data []byte) error
- func (u *Uint) UnmarshalYAML(unmarshal func(interface{}) error) error
- type Uint16
- func (u *Uint16) Clear()
- func (u Uint16) Get() (uint16, bool)
- func (u Uint16) IsSet() bool
- func (u Uint16) MarshalJSON() ([]byte, error)
- func (u Uint16) MarshalYAML() (interface{}, error)
- func (u *Uint16) Set(value uint16)
- func (u *Uint16) UnmarshalJSON(data []byte) error
- func (u *Uint16) UnmarshalYAML(unmarshal func(interface{}) error) error
- type Uint32
- func (u *Uint32) Clear()
- func (u Uint32) Get() (uint32, bool)
- func (u Uint32) IsSet() bool
- func (u Uint32) MarshalJSON() ([]byte, error)
- func (u Uint32) MarshalYAML() (interface{}, error)
- func (u *Uint32) Set(value uint32)
- func (u *Uint32) UnmarshalJSON(data []byte) error
- func (u *Uint32) UnmarshalYAML(unmarshal func(interface{}) error) error
- type Uint64
- func (u *Uint64) Clear()
- func (u Uint64) Get() (uint64, bool)
- func (u Uint64) IsSet() bool
- func (u Uint64) MarshalJSON() ([]byte, error)
- func (u Uint64) MarshalYAML() (interface{}, error)
- func (u *Uint64) Set(value uint64)
- func (u *Uint64) UnmarshalJSON(data []byte) error
- func (u *Uint64) UnmarshalYAML(unmarshal func(interface{}) error) error
- type Uint8
- func (u *Uint8) Clear()
- func (u Uint8) Get() (uint8, bool)
- func (u Uint8) IsSet() bool
- func (u Uint8) MarshalJSON() ([]byte, error)
- func (u Uint8) MarshalYAML() (interface{}, error)
- func (u *Uint8) Set(value uint8)
- func (u *Uint8) UnmarshalJSON(data []byte) error
- func (u *Uint8) UnmarshalYAML(unmarshal func(interface{}) error) error
- type Uintptr
- func (u *Uintptr) Clear()
- func (u Uintptr) Get() (uintptr, bool)
- func (u Uintptr) IsSet() bool
- func (u Uintptr) MarshalJSON() ([]byte, error)
- func (u Uintptr) MarshalYAML() (interface{}, error)
- func (u *Uintptr) Set(value uintptr)
- func (u *Uintptr) UnmarshalJSON(data []byte) error
- func (u *Uintptr) UnmarshalYAML(unmarshal func(interface{}) error) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bool ¶
type Bool struct {
// contains filtered or unexported fields
}
Bool represents an optional bool value.
func (Bool) Get ¶ added in v0.2.0
Get returns the bool value and a boolean value indicating whether the bool value is set.
func (Bool) IsSet ¶ added in v0.2.0
IsSet returns a boolean value indicating whether the bool value is set.
func (Bool) MarshalJSON ¶
MarshalJSON implements json.Marshaler.
func (Bool) MarshalYAML ¶
MarshalYAML implements yaml.Marshaler.
func (*Bool) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler.
func (*Bool) UnmarshalYAML ¶
UnmarshalYAML implements yaml.Unmarshaler.
type Byte ¶
type Byte struct {
// contains filtered or unexported fields
}
Byte represents an optional byte value.
func (Byte) Get ¶ added in v0.2.0
Get returns the byte value and a boolean value indicating whether the byte value is set.
func (Byte) IsSet ¶ added in v0.2.0
IsSet returns a boolean value indicating whether the byte value is set.
func (Byte) MarshalJSON ¶
MarshalJSON implements json.Marshaler.
func (Byte) MarshalYAML ¶
MarshalYAML implements yaml.Marshaler.
func (*Byte) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler.
func (*Byte) UnmarshalYAML ¶
UnmarshalYAML implements yaml.Unmarshaler.
type Complex128 ¶
type Complex128 struct {
// contains filtered or unexported fields
}
Complex128 represents an optional complex128 value.
func MakeComplex128 ¶
func MakeComplex128(value complex128) Complex128
MakeComplex128 makes a new optional complex128 value set to the given value.
func (Complex128) Get ¶ added in v0.2.0
func (c Complex128) Get() (complex128, bool)
Get returns the complex128 value and a boolean value indicating whether the complex128 value is set.
func (Complex128) IsSet ¶ added in v0.2.0
func (c Complex128) IsSet() bool
IsSet returns a boolean value indicating whether the complex128 value is set.
type Complex64 ¶
type Complex64 struct {
// contains filtered or unexported fields
}
Complex64 represents an optional complex64 value.
func MakeComplex64 ¶
MakeComplex64 makes a new optional complex64 value set to the given value.
func (Complex64) Get ¶ added in v0.2.0
Get returns the complex64 value and a boolean value indicating whether the complex64 value is set.
type Duration ¶
type Duration struct {
// contains filtered or unexported fields
}
Duration represents an optional time.Duration value.
func MakeDuration ¶
MakeDuration makes a new optional time.Duration value set to the given value.
func (Duration) Get ¶ added in v0.2.0
Get returns the time.Duration value and a boolean value indicating whether the time.Duration value is set.
func (Duration) IsSet ¶ added in v0.2.0
IsSet returns a boolean value indicating whether the time.Duration value is set.
func (Duration) MarshalJSON ¶
MarshalJSON implements json.Marshaler.
func (Duration) MarshalYAML ¶
MarshalYAML implements yaml.Marshaler.
func (*Duration) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler.
func (*Duration) UnmarshalYAML ¶
UnmarshalYAML implements yaml.Unmarshaler.
type Float32 ¶
type Float32 struct {
// contains filtered or unexported fields
}
Float32 represents an optional float32 value.
func MakeFloat32 ¶
MakeFloat32 makes a new optional float32 value set to the given value.
func (Float32) Get ¶ added in v0.2.0
Get returns the float32 value and a boolean value indicating whether the float32 value is set.
func (Float32) IsSet ¶ added in v0.2.0
IsSet returns a boolean value indicating whether the float32 value is set.
func (Float32) MarshalJSON ¶
MarshalJSON implements json.Marshaler.
func (Float32) MarshalYAML ¶
MarshalYAML implements yaml.Marshaler.
func (*Float32) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler.
func (*Float32) UnmarshalYAML ¶
UnmarshalYAML implements yaml.Unmarshaler.
type Float64 ¶
type Float64 struct {
// contains filtered or unexported fields
}
Float64 represents an optional float64 value.
func MakeFloat64 ¶
MakeFloat64 makes a new optional float64 value set to the given value.
func (Float64) Get ¶ added in v0.2.0
Get returns the float64 value and a boolean value indicating whether the float64 value is set.
func (Float64) IsSet ¶ added in v0.2.0
IsSet returns a boolean value indicating whether the float64 value is set.
func (Float64) MarshalJSON ¶
MarshalJSON implements json.Marshaler.
func (Float64) MarshalYAML ¶
MarshalYAML implements yaml.Marshaler.
func (*Float64) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler.
func (*Float64) UnmarshalYAML ¶
UnmarshalYAML implements yaml.Unmarshaler.
type Int ¶
type Int struct {
// contains filtered or unexported fields
}
Int represents an optional int value.
func (Int) Get ¶ added in v0.2.0
Get returns the int value and a boolean value indicating whether the int value is set.
func (Int) IsSet ¶ added in v0.2.0
IsSet returns a boolean value indicating whether the int value is set.
func (Int) MarshalJSON ¶
MarshalJSON implements json.Marshaler.
func (Int) MarshalYAML ¶
MarshalYAML implements yaml.Marshaler.
func (*Int) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler.
func (*Int) UnmarshalYAML ¶
UnmarshalYAML implements yaml.Unmarshaler.
type Int16 ¶
type Int16 struct {
// contains filtered or unexported fields
}
Int16 represents an optional int16 value.
func (Int16) Get ¶ added in v0.2.0
Get returns the int16 value and a boolean value indicating whether the int16 value is set.
func (Int16) IsSet ¶ added in v0.2.0
IsSet returns a boolean value indicating whether the int16 value is set.
func (Int16) MarshalJSON ¶
MarshalJSON implements json.Marshaler.
func (Int16) MarshalYAML ¶
MarshalYAML implements yaml.Marshaler.
func (*Int16) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler.
func (*Int16) UnmarshalYAML ¶
UnmarshalYAML implements yaml.Unmarshaler.
type Int32 ¶
type Int32 struct {
// contains filtered or unexported fields
}
Int32 represents an optional int32 value.
func (Int32) Get ¶ added in v0.2.0
Get returns the int32 value and a boolean value indicating whether the int32 value is set.
func (Int32) IsSet ¶ added in v0.2.0
IsSet returns a boolean value indicating whether the int32 value is set.
func (Int32) MarshalJSON ¶
MarshalJSON implements json.Marshaler.
func (Int32) MarshalYAML ¶
MarshalYAML implements yaml.Marshaler.
func (*Int32) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler.
func (*Int32) UnmarshalYAML ¶
UnmarshalYAML implements yaml.Unmarshaler.
type Int64 ¶
type Int64 struct {
// contains filtered or unexported fields
}
Int64 represents an optional int64 value.
func (Int64) Get ¶ added in v0.2.0
Get returns the int64 value and a boolean value indicating whether the int64 value is set.
func (Int64) IsSet ¶ added in v0.2.0
IsSet returns a boolean value indicating whether the int64 value is set.
func (Int64) MarshalJSON ¶
MarshalJSON implements json.Marshaler.
func (Int64) MarshalYAML ¶
MarshalYAML implements yaml.Marshaler.
func (*Int64) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler.
func (*Int64) UnmarshalYAML ¶
UnmarshalYAML implements yaml.Unmarshaler.
type Int8 ¶
type Int8 struct {
// contains filtered or unexported fields
}
Int8 represents an optional int8 value.
func (Int8) Get ¶ added in v0.2.0
Get returns the int8 value and a boolean value indicating whether the int8 value is set.
func (Int8) IsSet ¶ added in v0.2.0
IsSet returns a boolean value indicating whether the int8 value is set.
func (Int8) MarshalJSON ¶
MarshalJSON implements json.Marshaler.
func (Int8) MarshalYAML ¶
MarshalYAML implements yaml.Marshaler.
func (*Int8) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler.
func (*Int8) UnmarshalYAML ¶
UnmarshalYAML implements yaml.Unmarshaler.
type Rune ¶
type Rune struct {
// contains filtered or unexported fields
}
Rune represents an optional rune value.
func (Rune) Get ¶ added in v0.2.0
Get returns the rune value and a boolean value indicating whether the rune value is set.
func (Rune) IsSet ¶ added in v0.2.0
IsSet returns a boolean value indicating whether the rune value is set.
func (Rune) MarshalJSON ¶
MarshalJSON implements json.Marshaler.
func (Rune) MarshalYAML ¶
MarshalYAML implements yaml.Marshaler.
func (*Rune) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler.
func (*Rune) UnmarshalYAML ¶
UnmarshalYAML implements yaml.Unmarshaler.
type String ¶
type String struct {
// contains filtered or unexported fields
}
String represents an optional string value.
func MakeString ¶
MakeString makes a new optional string value set to the given value.
func (String) Get ¶ added in v0.2.0
Get returns the string value and a boolean value indicating whether the string value is set.
func (String) IsSet ¶ added in v0.2.0
IsSet returns a boolean value indicating whether the string value is set.
func (String) MarshalJSON ¶
MarshalJSON implements json.Marshaler.
func (String) MarshalYAML ¶
MarshalYAML implements yaml.Marshaler.
func (*String) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler.
func (*String) UnmarshalYAML ¶
UnmarshalYAML implements yaml.Unmarshaler.
type Uint ¶
type Uint struct {
// contains filtered or unexported fields
}
Uint represents an optional uint value.
func (Uint) Get ¶ added in v0.2.0
Get returns the uint value and a boolean value indicating whether the uint value is set.
func (Uint) IsSet ¶ added in v0.2.0
IsSet returns a boolean value indicating whether the uint value is set.
func (Uint) MarshalJSON ¶
MarshalJSON implements json.Marshaler.
func (Uint) MarshalYAML ¶
MarshalYAML implements yaml.Marshaler.
func (*Uint) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler.
func (*Uint) UnmarshalYAML ¶
UnmarshalYAML implements yaml.Unmarshaler.
type Uint16 ¶
type Uint16 struct {
// contains filtered or unexported fields
}
Uint16 represents an optional uint16 value.
func MakeUint16 ¶
MakeUint16 makes a new optional uint16 value set to the given value.
func (Uint16) Get ¶ added in v0.2.0
Get returns the uint16 value and a boolean value indicating whether the uint16 value is set.
func (Uint16) IsSet ¶ added in v0.2.0
IsSet returns a boolean value indicating whether the uint16 value is set.
func (Uint16) MarshalJSON ¶
MarshalJSON implements json.Marshaler.
func (Uint16) MarshalYAML ¶
MarshalYAML implements yaml.Marshaler.
func (*Uint16) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler.
func (*Uint16) UnmarshalYAML ¶
UnmarshalYAML implements yaml.Unmarshaler.
type Uint32 ¶
type Uint32 struct {
// contains filtered or unexported fields
}
Uint32 represents an optional uint32 value.
func MakeUint32 ¶
MakeUint32 makes a new optional uint32 value set to the given value.
func (Uint32) Get ¶ added in v0.2.0
Get returns the uint32 value and a boolean value indicating whether the uint32 value is set.
func (Uint32) IsSet ¶ added in v0.2.0
IsSet returns a boolean value indicating whether the uint32 value is set.
func (Uint32) MarshalJSON ¶
MarshalJSON implements json.Marshaler.
func (Uint32) MarshalYAML ¶
MarshalYAML implements yaml.Marshaler.
func (*Uint32) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler.
func (*Uint32) UnmarshalYAML ¶
UnmarshalYAML implements yaml.Unmarshaler.
type Uint64 ¶
type Uint64 struct {
// contains filtered or unexported fields
}
Uint64 represents an optional uint64 value.
func MakeUint64 ¶
MakeUint64 makes a new optional uint64 value set to the given value.
func (Uint64) Get ¶ added in v0.2.0
Get returns the uint64 value and a boolean value indicating whether the uint64 value is set.
func (Uint64) IsSet ¶ added in v0.2.0
IsSet returns a boolean value indicating whether the uint64 value is set.
func (Uint64) MarshalJSON ¶
MarshalJSON implements json.Marshaler.
func (Uint64) MarshalYAML ¶
MarshalYAML implements yaml.Marshaler.
func (*Uint64) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler.
func (*Uint64) UnmarshalYAML ¶
UnmarshalYAML implements yaml.Unmarshaler.
type Uint8 ¶
type Uint8 struct {
// contains filtered or unexported fields
}
Uint8 represents an optional uint8 value.
func (Uint8) Get ¶ added in v0.2.0
Get returns the uint8 value and a boolean value indicating whether the uint8 value is set.
func (Uint8) IsSet ¶ added in v0.2.0
IsSet returns a boolean value indicating whether the uint8 value is set.
func (Uint8) MarshalJSON ¶
MarshalJSON implements json.Marshaler.
func (Uint8) MarshalYAML ¶
MarshalYAML implements yaml.Marshaler.
func (*Uint8) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler.
func (*Uint8) UnmarshalYAML ¶
UnmarshalYAML implements yaml.Unmarshaler.
type Uintptr ¶
type Uintptr struct {
// contains filtered or unexported fields
}
Uintptr represents an optional uintptr value.
func MakeUintptr ¶
MakeUintptr makes a new optional uintptr value set to the given value.
func (Uintptr) Get ¶ added in v0.2.0
Get returns the uintptr value and a boolean value indicating whether the uintptr value is set.
func (Uintptr) IsSet ¶ added in v0.2.0
IsSet returns a boolean value indicating whether the uintptr value is set.
func (Uintptr) MarshalJSON ¶
MarshalJSON implements json.Marshaler.
func (Uintptr) MarshalYAML ¶
MarshalYAML implements yaml.Marshaler.
func (*Uintptr) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler.
func (*Uintptr) UnmarshalYAML ¶
UnmarshalYAML implements yaml.Unmarshaler.