value

package
v1.8.6 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnyValue

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

AnyValue 任意值

func Any

func Any(value interface{}) AnyValue

Any 任意值

func (*AnyValue) Value

func (av *AnyValue) Value() interface{}

type BoolValue

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

BoolValue 布尔值

func Bool

func Bool(value bool) BoolValue

Bool 布尔值

func Boolp

func Boolp(value *bool) BoolValue

Boolp 布尔值

func (*BoolValue) Value

func (bv *BoolValue) Value() interface{}

type BoolsValue

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

BoolsValue 布尔数组

func Bools

func Bools(value ...bool) BoolsValue

Bools 布尔数组

func (*BoolsValue) Value

func (bv *BoolsValue) Value() interface{}

type DurationValue

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

DurationValue 时间段值

func Duration

func Duration(value time.Duration) DurationValue

Duration 时间段值

func Durationp

func Durationp(value *time.Duration) DurationValue

Durationp 时间段值

func (*DurationValue) Value

func (dv *DurationValue) Value() interface{}

type DurationsValue

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

DurationsValue 时间段数组值

func Durations

func Durations(value ...time.Duration) DurationsValue

Durations 时间段数组值

func (*DurationsValue) Value

func (dv *DurationsValue) Value() interface{}

type ErrorValue

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

ErrorValue 错误值

func Error

func Error(err error) ErrorValue

Error 错误值

func (*ErrorValue) Value

func (ev *ErrorValue) Value() interface{}

type Float32Value

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

Float32Value 浮点值

func Float32

func Float32(value float32) Float32Value

Float32 浮点值

func Float32p

func Float32p(value *float32) Float32Value

Float32p 浮点值

func (*Float32Value) Value

func (fv *Float32Value) Value() interface{}

type Float64Value

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

Float64Value 浮点值

func Float64

func Float64(value float64) Float64Value

Float64 浮点值

func Float64p

func Float64p(value *float64) Float64Value

Float64p 浮点值

func (*Float64Value) Value

func (fv *Float64Value) Value() interface{}

type Float64sValue

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

Float64sValue 浮点数组值

func Float64s

func Float64s(value ...float64) Float64sValue

Float64s 浮点数组值

func (*Float64sValue) Value

func (fv *Float64sValue) Value() interface{}

type Int64Value

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

Int64Value 整形值

func Int64

func Int64(value int64) Int64Value

Int64 整形值

func Int64p

func Int64p(value *int64) Int64Value

Int64p 整形值

func (*Int64Value) Value

func (iv *Int64Value) Value() interface{}

type Int64sValue

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

Int64sValue 整形数组值

func Int64s

func Int64s(value ...int64) Int64sValue

Int64s 整形数组值

func (*Int64sValue) Value

func (iv *Int64sValue) Value() interface{}

type Int8Value

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

Int8Value 整形值

func Int8

func Int8(value int8) Int8Value

Int8 整形值

func Int8p

func Int8p(value *int8) Int8Value

Int8p 整形值

func (*Int8Value) Value

func (iv *Int8Value) Value() interface{}

type IntValue

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

IntValue 整形值

func Int

func Int(value int) IntValue

Int 整形值

func Intp

func Intp(value *int) IntValue

Intp 整形值

func (*IntValue) Value

func (iv *IntValue) Value() interface{}

type IntsValue

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

IntsValue 整形值

func Ints

func Ints(value ...int) IntsValue

Ints 整形数组

func (*IntsValue) Value

func (iv *IntsValue) Value() interface{}

type StringValue

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

StringValue 字符串值

func String

func String(value string) StringValue

String 字符串值

func Stringp

func Stringp(value *string) StringValue

Stringp 字符串值

func (*StringValue) Value

func (sv *StringValue) Value() interface{}

type StringsValue

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

StringsValue 字符串值

func Strings

func Strings(value ...string) StringsValue

Strings 字符串数组

func (*StringsValue) Value

func (sv *StringsValue) Value() interface{}

type TimeValue

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

TimeValue 时间值

func Time

func Time(value time.Time) TimeValue

Time 时间值

func Timep

func Timep(value *time.Time) TimeValue

Timep 时间值

func (*TimeValue) Value

func (iv *TimeValue) Value() interface{}

type TimesValue

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

TimesValue 时间数组值

func Times

func Times(value ...time.Time) TimesValue

Times 时间数组值

func (*TimesValue) Value

func (iv *TimesValue) Value() interface{}

type UintValue

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

UintValue 整形值

func Uint

func Uint(value uint) UintValue

Uint 整形值

func Uintp

func Uintp(value *uint) UintValue

Uintp 整形值

func (*UintValue) Value

func (iv *UintValue) Value() interface{}

type UintsValue

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

UintsValue 整形数组值

func Uints

func Uints(value ...uint) UintsValue

Uints 整形数组值

func (*UintsValue) Value

func (iv *UintsValue) Value() interface{}

Jump to

Keyboard shortcuts

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