示例#1
0
文件: main.go 项目: get3w/get3w
func main() {
	plugin := &MyPlugin{}

	// Register the objects to be exported
	pingo.Register(plugin)
	// Run the main events handler
	pingo.Run()
}
示例#2
0
文件: register.go 项目: get3w/get3w
// Register a new object this package exports. The object must be
// an interface of Extendable.
func Register(extend Extend) {
	pingo.Register(extend)
	pingo.Run()
}
示例#3
0
// Run the finger subsystem
func Run() error {
	return pingo.Run()
}
示例#4
0
文件: util.go 项目: DoG-peer/gobou
// Register connect your type to pingo
func Register(obj interface{}) {
	pingo.Register(obj)
	pingo.Run()
}
示例#5
0
文件: main.go 项目: kissthink/pingo
func main() {
	plugin := &Plugin{}

	pingo.Register(plugin)
	pingo.Run()
}