classify

package module
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CategoryHandler

type CategoryHandler func(value interface{}) interface{}

type Classify

type Classify struct {
	Values *vbtkey.Tree
	// contains filtered or unexported fields
}

分类

func New

func New() *Classify

func (*Classify) AddCategory

func (clsfy *Classify) AddCategory(name string, handler CategoryHandler) *Classify

func (*Classify) Build added in v1.0.0

func (clsfy *Classify) Build(mode string, handlers ...CategoryHandler)

func (*Classify) Categorys

func (clsfy *Classify) Categorys() string

func (*Classify) Collect

func (clsfy *Classify) Collect()

func (*Classify) CollectCategory

func (clsfy *Classify) CollectCategory(handler CategoryHandler)

func (*Classify) Get

func (clsfy *Classify) Get(out interface{}, vPaths ...interface{})

func (*Classify) Keys

func (clsfy *Classify) Keys(paths ...interface{}) (result []interface{})

func (*Classify) Put

func (clsfy *Classify) Put(v interface{})

Jump to

Keyboard shortcuts

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