Example #1
0
File: main.go Project: get3w/get3w
func main() {
	plugin := &MyPlugin{}

	// Register the objects to be exported
	pingo.Register(plugin)
	// Run the main events handler
	pingo.Run()
}
Example #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()
}
Example #3
0
// Run the finger subsystem
func Run() error {
	return pingo.Run()
}
Example #4
0
// Register connect your type to pingo
func Register(obj interface{}) {
	pingo.Register(obj)
	pingo.Run()
}
Example #5
0
func main() {
	plugin := &Plugin{}

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