generic

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Any

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

func New

func New(val interface{}) *Any

* * New, create new Any * @param val interface{} * @return *Any *

func (*Any) Bool

func (a *Any) Bool() bool

* * Bool, get value from Any as boolean * @return bool *

func (*Any) Int

func (a *Any) Int() int

* * Int, get value from Any as int * @return int *

func (*Any) Num

func (a *Any) Num() float64

* * Num, get value from Any as float64 * @return float64 *

func (*Any) Set

func (a *Any) Set(val interface{}) interface{}

* * Set, set value to Any * @param val interface{} * @return interface{} *

func (*Any) Str

func (a *Any) Str() string

* * Str, get value from Any as string * @return string *

func (*Any) Time

func (a *Any) Time() time.Time

* * Time, get value from Any as time.Time * @return time.Time *

func (*Any) Val

func (a *Any) Val() interface{}

* * Val, get value from Any * @return interface{} *

Jump to

Keyboard shortcuts

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