field

package
v1.0.22 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2023 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 Config added in v1.0.0

type Config interface {
	Path() string
}

type Field

type Field struct {
	Path    string        `json:"path"`
	Name    string        `json:"name"`
	Desc    string        `json:"desc"`
	Type    string        `json:"type"`
	Value   reflect.Value `json:"value"`
	Default interface{}   `json:"default"`
}

func (*Field) Paths

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

func (*Field) Row

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

func (*Field) String

func (f *Field) String() string

type Fields

type Fields []Field

func (Fields) Len

func (fs Fields) Len() int

func (Fields) Less

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

func (*Fields) Parse added in v1.0.0

func (fs *Fields) Parse(c Config) *Fields

func (*Fields) Sort

func (fs *Fields) Sort() *Fields

func (Fields) Swap

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

func (*Fields) Table added in v1.0.0

func (fs *Fields) Table() string

Jump to

Keyboard shortcuts

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