field

package
v0.0.0-...-bc1d458 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2020 License: BSD-2-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Field

type Field struct {
	Name      string        `json:"name"`
	Value     interface{}   `json:"value"`
	ValueType vtc.ValueType `json:"type"`
}

func New

func New(name string) *Field

func NewWithValue

func NewWithValue(name string, v interface{}) *Field

func (*Field) Blob

func (f *Field) Blob() ([]byte, error)

func (*Field) Bool

func (f *Field) Bool() (bool, error)

func (*Field) Float32

func (f *Field) Float32() (float32, error)

func (*Field) Float64

func (f *Field) Float64() (float64, error)

func (*Field) Int32

func (f *Field) Int32() (int32, error)

func (*Field) Int64

func (f *Field) Int64() (int64, error)

func (*Field) SetValue

func (f *Field) SetValue(v interface{}) *Field

func (*Field) Text

func (f *Field) Text() (string, error)

func (*Field) UInt32

func (f *Field) UInt32() (uint32, error)

func (*Field) UInt64

func (f *Field) UInt64() (uint64, error)

func (*Field) Valid

func (f *Field) Valid() bool

Jump to

Keyboard shortcuts

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