You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
nnet/component/component.go

10 lines
173 B
Go

package component
// Component 组件接口
type Component interface {
// OnInit 初始化组件时调用.
OnInit()
// OnShutdown 停止组件时调用.
OnShutdown()
}