Exemplo n.º 1
0
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")
}
Exemplo n.º 2
0
func main() {
	cli.Run("gohan", "Gohan", BuildVersion)
}
Exemplo n.º 3
0
func main() {
	cli.Run("gohan", "Gohan", "0.1.0")
}