basetype

package
v3.0.8-rc.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Type

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

func NewMustTimeType

func NewMustTimeType(val interface{}) *Type

func NewMustType

func NewMustType(val interface{}) *Type

func NewTimeType

func NewTimeType(val interface{}) (*Type, error)

func NewType

func NewType(val interface{}) (*Type, error)

func (*Type) Bool

func (bt *Type) Bool() bool

func (*Type) Float32

func (bt *Type) Float32() float32

func (*Type) Float64

func (bt *Type) Float64() float64

func (*Type) Int

func (bt *Type) Int() int

func (*Type) Int16

func (bt *Type) Int16() int16

func (*Type) Int32

func (bt *Type) Int32() int32

func (*Type) Int64

func (bt *Type) Int64() int64

func (*Type) Int8

func (bt *Type) Int8() int8

func (*Type) IsBool

func (bt *Type) IsBool() bool

func (*Type) IsNumeric

func (bt *Type) IsNumeric() bool

func (*Type) IsString

func (bt *Type) IsString() bool

func (*Type) MarshalJSON

func (bt *Type) MarshalJSON() ([]byte, error)

func (*Type) String

func (bt *Type) String() string

func (*Type) Time

func (bt *Type) Time() (time.Time, error)

func (*Type) Type

func (bt *Type) Type() ValueType

func (*Type) Uint

func (bt *Type) Uint() uint

func (*Type) Uint16

func (bt *Type) Uint16() uint16

func (*Type) Uint32

func (bt *Type) Uint32() uint32

func (*Type) Uint64

func (bt *Type) Uint64() uint64

func (*Type) Uint8

func (bt *Type) Uint8() uint8

func (*Type) UnmarshalJSON

func (bt *Type) UnmarshalJSON(b []byte) error

type ValueType

type ValueType string
const (
	TimeLayout = time.RFC3339

	Bool    ValueType = "bool"
	String  ValueType = "string"
	Float64 ValueType = "int64"
	Time    ValueType = "time"
)

Jump to

Keyboard shortcuts

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