initializer

package
v0.0.0-...-8b85423 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MAX_ORDER     = 0
	MIN_ORDER     = 65535
	DEFUALT_ORDER = 1000
)

Variables

This section is empty.

Functions

func InitAll

func InitAll()

func Registry

func Registry(f func())

Registry 注册初始化方法,默认优先级为1000

func RegistryByOrder

func RegistryByOrder(f func(), order int)

RegistryByOrder 注册初始化方法,指定优先级

Types

This section is empty.

Jump to

Keyboard shortcuts

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