field

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2020 License: Apache-2.0 Imports: 5 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
	Path      string
	Desc      string
	Immutable bool
	Def       interface{}

	sync.Mutex
	// contains filtered or unexported fields
}

func New

func New(immutable bool, name, path, desc string, def interface{}) *Field

func (*Field) Paths

func (f *Field) Paths() []string

func (*Field) Row

func (f *Field) Row() []string

func (*Field) SetVal

func (f *Field) SetVal(val reader.Value)

func (*Field) String

func (f *Field) String() string

func (*Field) Val

func (f *Field) Val() reader.Value

type Fields

type Fields []*Field

func (*Fields) Append

func (fs *Fields) Append(fields ...*Field) *Fields

func (Fields) Len

func (fs Fields) Len() int

func (Fields) Less

func (fs Fields) Less(i, j int) bool

func (*Fields) Sort

func (fs *Fields) Sort() *Fields

func (Fields) Swap

func (fs Fields) Swap(i, j int)

Jump to

Keyboard shortcuts

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