diff options
Diffstat (limited to 'template/go/base-web-app.go')
-rw-r--r-- | template/go/base-web-app.go | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/template/go/base-web-app.go b/template/go/base-web-app.go new file mode 100644 index 0000000..b760d93 --- /dev/null +++ b/template/go/base-web-app.go @@ -0,0 +1,13 @@ +package main + +import ( + "fmt" + "net/http" +) + +func main() { + http.HandleFunc("/", func (w http.ResponseWriter, r *http.Request) { + fmt.Fprintf(w, "{{_cursor_}}") + }) + http.ListenAndServe(":8080", nil) +} |