funcs

package
v1.0.1006 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HasFunc added in v1.0.1002

func HasFunc(name string) bool

是否存在

func RemoveFunc added in v1.0.1002

func RemoveFunc(name string)

移除已注册函数

Types

type FuncMap

type FuncMap = map[string]any

方法列表

func GetAllFunc added in v1.0.1002

func GetAllFunc() FuncMap

获取全部注册函数

type Funcs

type Funcs struct {
	// contains filtered or unexported fields
}

*

  • 函数 *
  • @create 2022-7-11
  • @author deatil

func AddFunc added in v1.0.1002

func AddFunc(name string, fn any) *Funcs

添加函数

func AddFuncs added in v1.0.1002

func AddFuncs(data FuncMap) *Funcs

批量添加函数

func New

func New() *Funcs

构造函数

func (*Funcs) AddFunc

func (this *Funcs) AddFunc(name string, fn any) *Funcs

添加函数

func (*Funcs) AddFuncs

func (this *Funcs) AddFuncs(data FuncMap) *Funcs

批量添加函数

func (*Funcs) GetAllFunc added in v1.0.1002

func (this *Funcs) GetAllFunc() FuncMap

获取全部注册函数

func (*Funcs) HasFunc

func (this *Funcs) HasFunc(name string) bool

是否存在

func (*Funcs) RemoveFunc

func (this *Funcs) RemoveFunc(name string)

移除已注册函数

Jump to

Keyboard shortcuts

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