A basic, barebones web app, intented to be used as a starting point for developing an Isomorphic Go application.

gopherjs.go 340B

1234567891011121314
  1. package handlers
  2. import (
  3. "net/http"
  4. "os"
  5. )
  6. func GopherjsScriptHandler(w http.ResponseWriter, r *http.Request) {
  7. http.ServeFile(w, r, os.Getenv("ISOGO_APP_ROOT")+"/client/client.js")
  8. }
  9. func GopherjsScriptMapHandler(w http.ResponseWriter, r *http.Request) {
  10. http.ServeFile(w, r, os.Getenv("ISOGO_APP_ROOT")+"/client/client.js.map")
  11. }