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

index.go 234B

123456789101112
  1. package handlers
  2. import (
  3. "net/http"
  4. "os"
  5. "github.com/isomorphicgo/isogoapp/view"
  6. )
  7. func IndexHandler(w http.ResponseWriter, r *http.Request) {
  8. view.RenderTemplate(w, os.Getenv("ISOGO_APP_ROOT")+"/templates/index.html", nil)
  9. }