factory

package
v1.2.24051 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: BSD-3-Clause Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateInstance

func CreateInstance(id string, args ...interface{}) (rval interface{}, err error)

使用方法创建一个对象

func GetVar

func GetVar(id string) interface{}

获取一个全局对象

func RangeVarList

func RangeVarList(cb func(val interface{}) bool)

循环所有的全局对象

cb 返回false 则终止循环

func RegisterCreateFunc

func RegisterCreateFunc(id string, cfun t_createfun) error

注册一个创建方法函数

func RegisterVar

func RegisterVar(id string, val interface{})

注册一个全局对象

func RemoveVar

func RemoveVar(id string)

移除一个全局对象

func UnregisterCreateFunc

func UnregisterCreateFunc(id string)

移除一个创建方法

Types

This section is empty.

Jump to

Keyboard shortcuts

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