func main() { //Customize code //Register go callback golang.RegisterGoCallback("exampleapp_callback", func(event string, context map[string]interface{}) error { fmt.Printf("callback on %s : %v", event, context) return nil }) exampleModule := &ExampleModule{} //Register go based module for javascript otto.RegisterModule("exampleapp", exampleModule) cli.Run("exampleapp", "exampleapp", "0.0.1") }
func main() { cli.Run("gohan", "Gohan", BuildVersion) }
func main() { cli.Run("gohan", "Gohan", "0.1.0") }