govalue

package
v0.0.0-...-01a1fb0 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Value

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

func New

func New(value interface{}) *Value

func (*Value) Bool

func (this *Value) Bool() bool

func (*Value) Bytes

func (this *Value) Bytes() []byte

func (*Value) Duration

func (this *Value) Duration() time.Duration

func (*Value) Float32

func (this *Value) Float32() float32

func (*Value) Float64

func (this *Value) Float64() float64

func (*Value) Int

func (this *Value) Int() int

func (*Value) Int16

func (this *Value) Int16() int16

func (*Value) Int32

func (this *Value) Int32() int32

func (*Value) Int64

func (this *Value) Int64() int64

func (*Value) Int8

func (this *Value) Int8() int8

func (*Value) Set

func (this *Value) Set(value interface{}) *Value

func (*Value) StrictBool

func (this *Value) StrictBool() (bool, error)

func (*Value) StrictDuration

func (this *Value) StrictDuration() (time.Duration, error)

Duration returns time.Duration type value.

func (*Value) StrictFloat32

func (this *Value) StrictFloat32() (float32, error)

func (*Value) StrictFloat64

func (this *Value) StrictFloat64() (float64, error)

func (*Value) StrictInt

func (this *Value) StrictInt() (int, error)

func (*Value) StrictInt16

func (this *Value) StrictInt16() (int16, error)

func (*Value) StrictInt32

func (this *Value) StrictInt32() (int32, error)

func (*Value) StrictInt64

func (this *Value) StrictInt64() (int64, error)

func (*Value) StrictInt8

func (this *Value) StrictInt8() (int8, error)

func (*Value) StrictTime

func (this *Value) StrictTime() (time.Time, error)

Time parses with RFC3339 format and returns time.Time type value.

func (*Value) StrictTimeFormat

func (this *Value) StrictTimeFormat(format string) (time.Time, error)

TimeFormat parses with given format and returns time.Time type value.

func (*Value) StrictUint

func (this *Value) StrictUint() (uint, error)

func (*Value) StrictUint16

func (this *Value) StrictUint16() (uint16, error)

func (*Value) StrictUint32

func (this *Value) StrictUint32() (uint32, error)

func (*Value) StrictUint64

func (this *Value) StrictUint64() (uint64, error)

func (*Value) StrictUint8

func (this *Value) StrictUint8() (uint8, error)

func (*Value) String

func (this *Value) String() string

func (*Value) Time

func (this *Value) Time() time.Time

func (*Value) TimeFormat

func (this *Value) TimeFormat(format string) time.Time

func (*Value) Uint

func (this *Value) Uint() uint

func (*Value) Uint16

func (this *Value) Uint16() uint16

func (*Value) Uint32

func (this *Value) Uint32() uint32

func (*Value) Uint64

func (this *Value) Uint64() uint64

func (*Value) Uint8

func (this *Value) Uint8() uint8

Jump to

Keyboard shortcuts

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