optional

package module
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2022 License: MIT Imports: 4 Imported by: 1

README

optional

GoDev Workflow Status Coverage Status

Optional primitive types

Documentation

Index

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 MakeBool

func MakeBool(value bool) Bool

MakeBool makes a new optional bool value set to the given value.

func (*Bool) Clear

func (b *Bool) Clear()

Clear clears the bool value.

func (Bool) Get added in v0.2.0

func (b Bool) Get() (bool, bool)

Get returns the bool value and a boolean value indicating whether the bool value is set.

func (Bool) IsSet added in v0.2.0

func (b Bool) IsSet() bool

IsSet returns a boolean value indicating whether the bool value is set.

func (Bool) MarshalJSON

func (b Bool) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (Bool) MarshalYAML

func (b Bool) MarshalYAML() (interface{}, error)

MarshalYAML implements yaml.Marshaler.

func (*Bool) Set

func (b *Bool) Set(value bool)

Set sets the bool value.

func (*Bool) UnmarshalJSON

func (b *Bool) UnmarshalJSON(data []byte) error

UnmarshalJSON implements json.Unmarshaler.

func (*Bool) UnmarshalYAML

func (b *Bool) UnmarshalYAML(unmarshal func(interface{}) error) error

UnmarshalYAML implements yaml.Unmarshaler.

type Byte

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

Byte represents an optional byte value.

func MakeByte

func MakeByte(value byte) Byte

MakeByte makes a new optional byte value set to the given value.

func (*Byte) Clear

func (b *Byte) Clear()

Clear clears the byte value.

func (Byte) Get added in v0.2.0

func (b Byte) Get() (byte, bool)

Get returns the byte value and a boolean value indicating whether the byte value is set.

func (Byte) IsSet added in v0.2.0

func (b Byte) IsSet() bool

IsSet returns a boolean value indicating whether the byte value is set.

func (Byte) MarshalJSON

func (b Byte) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (Byte) MarshalYAML

func (b Byte) MarshalYAML() (interface{}, error)

MarshalYAML implements yaml.Marshaler.

func (*Byte) Set

func (b *Byte) Set(value byte)

Set sets the byte value.

func (*Byte) UnmarshalJSON

func (b *Byte) UnmarshalJSON(data []byte) error

UnmarshalJSON implements json.Unmarshaler.

func (*Byte) UnmarshalYAML

func (b *Byte) UnmarshalYAML(unmarshal func(interface{}) error) error

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

func (c *Complex128) Clear()

Clear clears the complex128 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.

func (*Complex128) Set

func (c *Complex128) Set(value complex128)

Set sets the complex128 value.

type Complex64

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

Complex64 represents an optional complex64 value.

func MakeComplex64

func MakeComplex64(value complex64) Complex64

MakeComplex64 makes a new optional complex64 value set to the given value.

func (*Complex64) Clear

func (c *Complex64) Clear()

Clear clears the complex64 value.

func (Complex64) Get added in v0.2.0

func (c Complex64) Get() (complex64, bool)

Get returns the complex64 value and a boolean value indicating whether the complex64 value is set.

func (Complex64) IsSet added in v0.2.0

func (c Complex64) IsSet() bool

IsSet returns a boolean value indicating whether the complex64 value is set.

func (*Complex64) Set

func (c *Complex64) Set(value complex64)

Set sets the complex64 value.

type Duration

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

Duration represents an optional time.Duration value.

func MakeDuration

func MakeDuration(value time.Duration) Duration

MakeDuration makes a new optional time.Duration value set to the given value.

func (*Duration) Clear

func (d *Duration) Clear()

Clear clears the time.Duration value.

func (Duration) Get added in v0.2.0

func (d Duration) Get() (time.Duration, bool)

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

func (d Duration) IsSet() bool

IsSet returns a boolean value indicating whether the time.Duration value is set.

func (Duration) MarshalJSON

func (d Duration) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (Duration) MarshalYAML

func (d Duration) MarshalYAML() (interface{}, error)

MarshalYAML implements yaml.Marshaler.

func (*Duration) Set

func (d *Duration) Set(value time.Duration)

Set sets the time.Duration value.

func (*Duration) UnmarshalJSON

func (d *Duration) UnmarshalJSON(data []byte) error

UnmarshalJSON implements json.Unmarshaler.

func (*Duration) UnmarshalYAML

func (d *Duration) UnmarshalYAML(unmarshal func(interface{}) error) error

UnmarshalYAML implements yaml.Unmarshaler.

type Float32

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

Float32 represents an optional float32 value.

func MakeFloat32

func MakeFloat32(value float32) Float32

MakeFloat32 makes a new optional float32 value set to the given value.

func (*Float32) Clear

func (f *Float32) Clear()

Clear clears the float32 value.

func (Float32) Get added in v0.2.0

func (f Float32) Get() (float32, bool)

Get returns the float32 value and a boolean value indicating whether the float32 value is set.

func (Float32) IsSet added in v0.2.0

func (f Float32) IsSet() bool

IsSet returns a boolean value indicating whether the float32 value is set.

func (Float32) MarshalJSON

func (f Float32) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (Float32) MarshalYAML

func (f Float32) MarshalYAML() (interface{}, error)

MarshalYAML implements yaml.Marshaler.

func (*Float32) Set

func (f *Float32) Set(value float32)

Set sets the float32 value.

func (*Float32) UnmarshalJSON

func (f *Float32) UnmarshalJSON(data []byte) error

UnmarshalJSON implements json.Unmarshaler.

func (*Float32) UnmarshalYAML

func (f *Float32) UnmarshalYAML(unmarshal func(interface{}) error) error

UnmarshalYAML implements yaml.Unmarshaler.

type Float64

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

Float64 represents an optional float64 value.

func MakeFloat64

func MakeFloat64(value float64) Float64

MakeFloat64 makes a new optional float64 value set to the given value.

func (*Float64) Clear

func (f *Float64) Clear()

Clear clears the float64 value.

func (Float64) Get added in v0.2.0

func (f Float64) Get() (float64, bool)

Get returns the float64 value and a boolean value indicating whether the float64 value is set.

func (Float64) IsSet added in v0.2.0

func (f Float64) IsSet() bool

IsSet returns a boolean value indicating whether the float64 value is set.

func (Float64) MarshalJSON

func (f Float64) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (Float64) MarshalYAML

func (f Float64) MarshalYAML() (interface{}, error)

MarshalYAML implements yaml.Marshaler.

func (*Float64) Set

func (f *Float64) Set(value float64)

Set sets the float64 value.

func (*Float64) UnmarshalJSON

func (f *Float64) UnmarshalJSON(data []byte) error

UnmarshalJSON implements json.Unmarshaler.

func (*Float64) UnmarshalYAML

func (f *Float64) UnmarshalYAML(unmarshal func(interface{}) error) error

UnmarshalYAML implements yaml.Unmarshaler.

type Int

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

Int represents an optional int value.

func MakeInt

func MakeInt(value int) Int

MakeInt makes a new optional int value set to the given value.

func (*Int) Clear

func (i *Int) Clear()

Clear clears the int value.

func (Int) Get added in v0.2.0

func (i Int) Get() (int, bool)

Get returns the int value and a boolean value indicating whether the int value is set.

func (Int) IsSet added in v0.2.0

func (i Int) IsSet() bool

IsSet returns a boolean value indicating whether the int value is set.

func (Int) MarshalJSON

func (i Int) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (Int) MarshalYAML

func (i Int) MarshalYAML() (interface{}, error)

MarshalYAML implements yaml.Marshaler.

func (*Int) Set

func (i *Int) Set(value int)

Set sets the int value.

func (*Int) UnmarshalJSON

func (i *Int) UnmarshalJSON(data []byte) error

UnmarshalJSON implements json.Unmarshaler.

func (*Int) UnmarshalYAML

func (i *Int) UnmarshalYAML(unmarshal func(interface{}) error) error

UnmarshalYAML implements yaml.Unmarshaler.

type Int16

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

Int16 represents an optional int16 value.

func MakeInt16

func MakeInt16(value int16) Int16

MakeInt16 makes a new optional int16 value set to the given value.

func (*Int16) Clear

func (i *Int16) Clear()

Clear clears the int16 value.

func (Int16) Get added in v0.2.0

func (i Int16) Get() (int16, bool)

Get returns the int16 value and a boolean value indicating whether the int16 value is set.

func (Int16) IsSet added in v0.2.0

func (i Int16) IsSet() bool

IsSet returns a boolean value indicating whether the int16 value is set.

func (Int16) MarshalJSON

func (i Int16) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (Int16) MarshalYAML

func (i Int16) MarshalYAML() (interface{}, error)

MarshalYAML implements yaml.Marshaler.

func (*Int16) Set

func (i *Int16) Set(value int16)

Set sets the int16 value.

func (*Int16) UnmarshalJSON

func (i *Int16) UnmarshalJSON(data []byte) error

UnmarshalJSON implements json.Unmarshaler.

func (*Int16) UnmarshalYAML

func (i *Int16) UnmarshalYAML(unmarshal func(interface{}) error) error

UnmarshalYAML implements yaml.Unmarshaler.

type Int32

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

Int32 represents an optional int32 value.

func MakeInt32

func MakeInt32(value int32) Int32

MakeInt32 makes a new optional int32 value set to the given value.

func (*Int32) Clear

func (i *Int32) Clear()

Clear clears the int32 value.

func (Int32) Get added in v0.2.0

func (i Int32) Get() (int32, bool)

Get returns the int32 value and a boolean value indicating whether the int32 value is set.

func (Int32) IsSet added in v0.2.0

func (i Int32) IsSet() bool

IsSet returns a boolean value indicating whether the int32 value is set.

func (Int32) MarshalJSON

func (i Int32) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (Int32) MarshalYAML

func (i Int32) MarshalYAML() (interface{}, error)

MarshalYAML implements yaml.Marshaler.

func (*Int32) Set

func (i *Int32) Set(value int32)

Set sets the int32 value.

func (*Int32) UnmarshalJSON

func (i *Int32) UnmarshalJSON(data []byte) error

UnmarshalJSON implements json.Unmarshaler.

func (*Int32) UnmarshalYAML

func (i *Int32) UnmarshalYAML(unmarshal func(interface{}) error) error

UnmarshalYAML implements yaml.Unmarshaler.

type Int64

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

Int64 represents an optional int64 value.

func MakeInt64

func MakeInt64(value int64) Int64

MakeInt64 makes a new optional int64 value set to the given value.

func (*Int64) Clear

func (i *Int64) Clear()

Clear clears the int64 value.

func (Int64) Get added in v0.2.0

func (i Int64) Get() (int64, bool)

Get returns the int64 value and a boolean value indicating whether the int64 value is set.

func (Int64) IsSet added in v0.2.0

func (i Int64) IsSet() bool

IsSet returns a boolean value indicating whether the int64 value is set.

func (Int64) MarshalJSON

func (i Int64) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (Int64) MarshalYAML

func (i Int64) MarshalYAML() (interface{}, error)

MarshalYAML implements yaml.Marshaler.

func (*Int64) Set

func (i *Int64) Set(value int64)

Set sets the int64 value.

func (*Int64) UnmarshalJSON

func (i *Int64) UnmarshalJSON(data []byte) error

UnmarshalJSON implements json.Unmarshaler.

func (*Int64) UnmarshalYAML

func (i *Int64) UnmarshalYAML(unmarshal func(interface{}) error) error

UnmarshalYAML implements yaml.Unmarshaler.

type Int8

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

Int8 represents an optional int8 value.

func MakeInt8

func MakeInt8(value int8) Int8

MakeInt8 makes a new optional int8 value set to the given value.

func (*Int8) Clear

func (i *Int8) Clear()

Clear clears the int8 value.

func (Int8) Get added in v0.2.0

func (i Int8) Get() (int8, bool)

Get returns the int8 value and a boolean value indicating whether the int8 value is set.

func (Int8) IsSet added in v0.2.0

func (i Int8) IsSet() bool

IsSet returns a boolean value indicating whether the int8 value is set.

func (Int8) MarshalJSON

func (i Int8) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (Int8) MarshalYAML

func (i Int8) MarshalYAML() (interface{}, error)

MarshalYAML implements yaml.Marshaler.

func (*Int8) Set

func (i *Int8) Set(value int8)

Set sets the int8 value.

func (*Int8) UnmarshalJSON

func (i *Int8) UnmarshalJSON(data []byte) error

UnmarshalJSON implements json.Unmarshaler.

func (*Int8) UnmarshalYAML

func (i *Int8) UnmarshalYAML(unmarshal func(interface{}) error) error

UnmarshalYAML implements yaml.Unmarshaler.

type Rune

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

Rune represents an optional rune value.

func MakeRune

func MakeRune(value rune) Rune

MakeRune makes a new optional rune value set to the given value.

func (*Rune) Clear

func (r *Rune) Clear()

Clear clears the rune value.

func (Rune) Get added in v0.2.0

func (r Rune) Get() (rune, bool)

Get returns the rune value and a boolean value indicating whether the rune value is set.

func (Rune) IsSet added in v0.2.0

func (r Rune) IsSet() bool

IsSet returns a boolean value indicating whether the rune value is set.

func (Rune) MarshalJSON

func (r Rune) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (Rune) MarshalYAML

func (r Rune) MarshalYAML() (interface{}, error)

MarshalYAML implements yaml.Marshaler.

func (*Rune) Set

func (r *Rune) Set(value rune)

Set sets the rune value.

func (*Rune) UnmarshalJSON

func (r *Rune) UnmarshalJSON(data []byte) error

UnmarshalJSON implements json.Unmarshaler.

func (*Rune) UnmarshalYAML

func (r *Rune) UnmarshalYAML(unmarshal func(interface{}) error) error

UnmarshalYAML implements yaml.Unmarshaler.

type String

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

String represents an optional string value.

func MakeString

func MakeString(value string) String

MakeString makes a new optional string value set to the given value.

func (*String) Clear

func (s *String) Clear()

Clear clears the string value.

func (String) Get added in v0.2.0

func (s String) Get() (string, bool)

Get returns the string value and a boolean value indicating whether the string value is set.

func (String) IsSet added in v0.2.0

func (s String) IsSet() bool

IsSet returns a boolean value indicating whether the string value is set.

func (String) MarshalJSON

func (s String) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (String) MarshalYAML

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

MarshalYAML implements yaml.Marshaler.

func (*String) Set

func (s *String) Set(value string)

Set sets the string value.

func (*String) UnmarshalJSON

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

UnmarshalJSON implements json.Unmarshaler.

func (*String) UnmarshalYAML

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

UnmarshalYAML implements yaml.Unmarshaler.

type Uint

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

Uint represents an optional uint value.

func MakeUint

func MakeUint(value uint) Uint

MakeUint makes a new optional uint value set to the given value.

func (*Uint) Clear

func (u *Uint) Clear()

Clear clears the uint value.

func (Uint) Get added in v0.2.0

func (u Uint) Get() (uint, bool)

Get returns the uint value and a boolean value indicating whether the uint value is set.

func (Uint) IsSet added in v0.2.0

func (u Uint) IsSet() bool

IsSet returns a boolean value indicating whether the uint value is set.

func (Uint) MarshalJSON

func (u Uint) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (Uint) MarshalYAML

func (u Uint) MarshalYAML() (interface{}, error)

MarshalYAML implements yaml.Marshaler.

func (*Uint) Set

func (u *Uint) Set(value uint)

Set sets the uint value.

func (*Uint) UnmarshalJSON

func (u *Uint) UnmarshalJSON(data []byte) error

UnmarshalJSON implements json.Unmarshaler.

func (*Uint) UnmarshalYAML

func (u *Uint) UnmarshalYAML(unmarshal func(interface{}) error) error

UnmarshalYAML implements yaml.Unmarshaler.

type Uint16

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

Uint16 represents an optional uint16 value.

func MakeUint16

func MakeUint16(value uint16) Uint16

MakeUint16 makes a new optional uint16 value set to the given value.

func (*Uint16) Clear

func (u *Uint16) Clear()

Clear clears the uint16 value.

func (Uint16) Get added in v0.2.0

func (u Uint16) Get() (uint16, bool)

Get returns the uint16 value and a boolean value indicating whether the uint16 value is set.

func (Uint16) IsSet added in v0.2.0

func (u Uint16) IsSet() bool

IsSet returns a boolean value indicating whether the uint16 value is set.

func (Uint16) MarshalJSON

func (u Uint16) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (Uint16) MarshalYAML

func (u Uint16) MarshalYAML() (interface{}, error)

MarshalYAML implements yaml.Marshaler.

func (*Uint16) Set

func (u *Uint16) Set(value uint16)

Set sets the uint16 value.

func (*Uint16) UnmarshalJSON

func (u *Uint16) UnmarshalJSON(data []byte) error

UnmarshalJSON implements json.Unmarshaler.

func (*Uint16) UnmarshalYAML

func (u *Uint16) UnmarshalYAML(unmarshal func(interface{}) error) error

UnmarshalYAML implements yaml.Unmarshaler.

type Uint32

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

Uint32 represents an optional uint32 value.

func MakeUint32

func MakeUint32(value uint32) Uint32

MakeUint32 makes a new optional uint32 value set to the given value.

func (*Uint32) Clear

func (u *Uint32) Clear()

Clear clears the uint32 value.

func (Uint32) Get added in v0.2.0

func (u Uint32) Get() (uint32, bool)

Get returns the uint32 value and a boolean value indicating whether the uint32 value is set.

func (Uint32) IsSet added in v0.2.0

func (u Uint32) IsSet() bool

IsSet returns a boolean value indicating whether the uint32 value is set.

func (Uint32) MarshalJSON

func (u Uint32) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (Uint32) MarshalYAML

func (u Uint32) MarshalYAML() (interface{}, error)

MarshalYAML implements yaml.Marshaler.

func (*Uint32) Set

func (u *Uint32) Set(value uint32)

Set sets the uint32 value.

func (*Uint32) UnmarshalJSON

func (u *Uint32) UnmarshalJSON(data []byte) error

UnmarshalJSON implements json.Unmarshaler.

func (*Uint32) UnmarshalYAML

func (u *Uint32) UnmarshalYAML(unmarshal func(interface{}) error) error

UnmarshalYAML implements yaml.Unmarshaler.

type Uint64

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

Uint64 represents an optional uint64 value.

func MakeUint64

func MakeUint64(value uint64) Uint64

MakeUint64 makes a new optional uint64 value set to the given value.

func (*Uint64) Clear

func (u *Uint64) Clear()

Clear clears the uint64 value.

func (Uint64) Get added in v0.2.0

func (u Uint64) Get() (uint64, bool)

Get returns the uint64 value and a boolean value indicating whether the uint64 value is set.

func (Uint64) IsSet added in v0.2.0

func (u Uint64) IsSet() bool

IsSet returns a boolean value indicating whether the uint64 value is set.

func (Uint64) MarshalJSON

func (u Uint64) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (Uint64) MarshalYAML

func (u Uint64) MarshalYAML() (interface{}, error)

MarshalYAML implements yaml.Marshaler.

func (*Uint64) Set

func (u *Uint64) Set(value uint64)

Set sets the uint64 value.

func (*Uint64) UnmarshalJSON

func (u *Uint64) UnmarshalJSON(data []byte) error

UnmarshalJSON implements json.Unmarshaler.

func (*Uint64) UnmarshalYAML

func (u *Uint64) UnmarshalYAML(unmarshal func(interface{}) error) error

UnmarshalYAML implements yaml.Unmarshaler.

type Uint8

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

Uint8 represents an optional uint8 value.

func MakeUint8

func MakeUint8(value uint8) Uint8

MakeUint8 makes a new optional uint8 value set to the given value.

func (*Uint8) Clear

func (u *Uint8) Clear()

Clear clears the uint8 value.

func (Uint8) Get added in v0.2.0

func (u Uint8) Get() (uint8, bool)

Get returns the uint8 value and a boolean value indicating whether the uint8 value is set.

func (Uint8) IsSet added in v0.2.0

func (u Uint8) IsSet() bool

IsSet returns a boolean value indicating whether the uint8 value is set.

func (Uint8) MarshalJSON

func (u Uint8) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (Uint8) MarshalYAML

func (u Uint8) MarshalYAML() (interface{}, error)

MarshalYAML implements yaml.Marshaler.

func (*Uint8) Set

func (u *Uint8) Set(value uint8)

Set sets the uint8 value.

func (*Uint8) UnmarshalJSON

func (u *Uint8) UnmarshalJSON(data []byte) error

UnmarshalJSON implements json.Unmarshaler.

func (*Uint8) UnmarshalYAML

func (u *Uint8) UnmarshalYAML(unmarshal func(interface{}) error) error

UnmarshalYAML implements yaml.Unmarshaler.

type Uintptr

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

Uintptr represents an optional uintptr value.

func MakeUintptr

func MakeUintptr(value uintptr) Uintptr

MakeUintptr makes a new optional uintptr value set to the given value.

func (*Uintptr) Clear

func (u *Uintptr) Clear()

Clear clears the uintptr value.

func (Uintptr) Get added in v0.2.0

func (u Uintptr) Get() (uintptr, bool)

Get returns the uintptr value and a boolean value indicating whether the uintptr value is set.

func (Uintptr) IsSet added in v0.2.0

func (u Uintptr) IsSet() bool

IsSet returns a boolean value indicating whether the uintptr value is set.

func (Uintptr) MarshalJSON

func (u Uintptr) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (Uintptr) MarshalYAML

func (u Uintptr) MarshalYAML() (interface{}, error)

MarshalYAML implements yaml.Marshaler.

func (*Uintptr) Set

func (u *Uintptr) Set(value uintptr)

Set sets the uintptr value.

func (*Uintptr) UnmarshalJSON

func (u *Uintptr) UnmarshalJSON(data []byte) error

UnmarshalJSON implements json.Unmarshaler.

func (*Uintptr) UnmarshalYAML

func (u *Uintptr) UnmarshalYAML(unmarshal func(interface{}) error) error

UnmarshalYAML implements yaml.Unmarshaler.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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