typ

package
v1.4.11 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2024 License: MIT Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Value

type Value struct {
	Data map[string]interface{}
	// contains filtered or unexported fields
}

Value ...

func NewValue

func NewValue(v ...map[string]interface{}) *Value

NewValue creates a new Value.

func (*Value) Bool

func (v *Value) Bool() bool

Bool ...

func (*Value) BoolE added in v1.2.3

func (v *Value) BoolE() (vv bool, err error)

BoolE ...

func (*Value) Float64

func (v *Value) Float64() float64

Float64 ...

func (*Value) Float64E added in v1.2.3

func (v *Value) Float64E() (vv float64, err error)

Float64E ...

func (*Value) Get

func (v *Value) Get(key string) *Value

Get gets the value by key.

func (*Value) Has

func (v *Value) Has(key string) bool

Has checks if the key has been set.

func (*Value) Int

func (v *Value) Int() int

Int ...

func (*Value) Int64

func (v *Value) Int64() int64

Int64 ...

func (*Value) Int64E added in v1.2.3

func (v *Value) Int64E() (vv int64, err error)

Int64E ...

func (*Value) IntE added in v1.2.3

func (v *Value) IntE() (vv int, err error)

IntE ...

func (*Value) Set

func (v *Value) Set(key string, value interface{})

Set sets the value by key.

func (*Value) String

func (v *Value) String() string

String ...

func (*Value) Unmarshal added in v1.2.10

func (v *Value) Unmarshal(vv interface{}) error

Unmarshal ...

Jump to

Keyboard shortcuts

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