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