field

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: 4 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnyField

type AnyField struct {
	key.StringKey
	value.AnyValue
}

AnyField 描述一个任意字段

func Any

func Any(k string, v interface{}) *AnyField

Any 创建一个任意字段

type BoolField

type BoolField struct {
	key.StringKey
	value.BoolValue
}

BoolField 描述一个布尔字段

func Bool

func Bool(k string, v bool) *BoolField

Bool 创建一个布尔字段

func Boolp

func Boolp(k string, v *bool) *BoolField

Boolp 创建一个布尔字段

type BoolsField

type BoolsField struct {
	key.StringKey
	value.BoolsValue
}

BoolsField 描述一个布尔数组字段

func Bools

func Bools(k string, v ...bool) *BoolsField

Bools 创建一个布尔数组字段

type DurationField

type DurationField struct {
	key.StringKey
	value.DurationValue
}

DurationField 描述一个时间段字段

func Duration

func Duration(k string, v time.Duration) *DurationField

Duration 创建一个时间段字段

func Durationp

func Durationp(k string, v *time.Duration) *DurationField

Durationp 创建一个时间段字段

type DurationsField

type DurationsField struct {
	key.StringKey
	value.DurationsValue
}

DurationsField 描述一个时间字段数组字段

func Durations

func Durations(k string, v ...time.Duration) *DurationsField

Durations 创建一个时间字段数组字段

type ErrorField

type ErrorField struct {
	key.StringKey
	value.ErrorValue
}

ErrorField 描述一个整形字段

func Error

func Error(err error) *ErrorField

Error 创建一个整形字段

type Float32Field

type Float32Field struct {
	key.StringKey
	value.Float32Value
}

Float32Field 描述一个整形字段

func Float32

func Float32(k string, v float32) *Float32Field

Float32 创建一个整形字段

func Float32p

func Float32p(k string, v *float32) *Float32Field

Float32p 创建一个整形字段

type Float64Field

type Float64Field struct {
	key.StringKey
	value.Float64Value
}

Float64Field 描述一个整形字段

func Float64

func Float64(k string, v float64) *Float64Field

Float64 创建一个整形字段

func Float64p

func Float64p(k string, v *float64) *Float64Field

Float64p 创建一个整形字段

type Float64sField

type Float64sField struct {
	key.StringKey
	value.Float64sValue
}

Float64sField 描述一个浮点型数组字段

func Float64s

func Float64s(k string, v ...float64) *Float64sField

Float64s 创建一个浮点型数组字段

type Int64Field

type Int64Field struct {
	key.StringKey
	value.Int64Value
}

Int64Field 描述一个整形字段

func Int64

func Int64(k string, v int64) *Int64Field

Int64 创建一个整形字段

func Int64p

func Int64p(k string, v *int64) *Int64Field

Int64p 创建一个整形字段

type Int64sField

type Int64sField struct {
	key.StringKey
	value.Int64sValue
}

Int64sField 描述一个整形数组字段

func Int64s

func Int64s(k string, v ...int64) *Int64sField

Int64s 创建一个整形数组字段

type Int8Field

type Int8Field struct {
	key.StringKey
	value.Int8Value
}

Int8Field 描述一个整形字段

func Int8

func Int8(k string, v int8) *Int8Field

Int8 创建一个整形字段

func Int8p

func Int8p(k string, v *int8) *Int8Field

Int8p 创建一个整形字段

type IntField

type IntField struct {
	key.StringKey
	value.IntValue
}

IntField 描述一个整形字段

func Int

func Int(k string, v int) *IntField

Int 创建一个整形字段

func Intp

func Intp(k string, v *int) *IntField

Intp 创建一个整形字段

type IntsField

type IntsField struct {
	key.StringKey
	value.IntsValue
}

IntsField 描述一个整形字段

func Ints

func Ints(k string, v ...int) *IntsField

Ints 创建一个整形字段

type StringField

type StringField struct {
	key.StringKey
	value.StringValue
}

StringField 描述一个字符串字段

func String

func String(k string, v string) *StringField

String 创建一个整形字段

func Stringp

func Stringp(k string, v *string) *StringField

Stringp 创建一个整形字段

type StringsField

type StringsField struct {
	key.StringKey
	value.StringsValue
}

StringsField 描述一个字符串字段

func Strings

func Strings(k string, v ...string) *StringsField

Strings 创建一个整形字段

type TimeField

type TimeField struct {
	key.StringKey
	value.TimeValue
}

TimeField 描述一个时间字段

func Time

func Time(k string, v time.Time) *TimeField

Time 创建一个时间字段

func Timep

func Timep(k string, v *time.Time) *TimeField

Timep 创建一个时间字段

type TimesField

type TimesField struct {
	key.StringKey
	value.TimesValue
}

TimesField 描述一个时间数组字段

func Times

func Times(k string, v ...time.Time) *TimesField

Times 创建一个时间数组字段

type UintField

type UintField struct {
	key.StringKey
	value.UintValue
}

UintField 描述一个整形字段

func Uint

func Uint(k string, v uint) *UintField

Uint 创建一个整形字段

func Uintp

func Uintp(k string, v *uint) *UintField

Uintp 创建一个整形字段

type UintsField

type UintsField struct {
	key.StringKey
	value.UintsValue
}

UintsField 描述一个整形数组字段

func Uints

func Uints(k string, v ...uint) *UintsField

Uints 创建一个整形数组字段

Jump to

Keyboard shortcuts

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