Example #1
0
func main() {

	app := gopherjs.App{PackageName: "github.com/kirillrdy/libkanji/web/client"}

	http.HandleFunc("/edict", func(response http.ResponseWriter, request *http.Request) {
		http.ServeFile(response, request, libkanji.Edict2FilePath())
	})

	app.Mount("/")

	nadeshiko.StartServer()
}
Example #2
0
func main() {
	app := gopherjs.App{PackageName: "github.com/kirillrdy/gopherjs/examples/hello_world"}
	app.Mount("/")

	nadeshiko.StartServer()
}