Esempio n. 1
0
File: main.go Progetto: get3w/get3w
func main() {
	plugin := &MyPlugin{}

	// Register the objects to be exported
	pingo.Register(plugin)
	// Run the main events handler
	pingo.Run()
}
Esempio n. 2
0
// Register a new object this package exports. The object must be
// an interface of Extendable.
func Register(extend Extend) {
	pingo.Register(extend)
	pingo.Run()
}
Esempio n. 3
0
// Run the finger subsystem
func Run() error {
	return pingo.Run()
}
Esempio n. 4
0
// Register connect your type to pingo
func Register(obj interface{}) {
	pingo.Register(obj)
	pingo.Run()
}
Esempio n. 5
0
func main() {
	plugin := &Plugin{}

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