From 2b4f6edefe96cc0b1ace83ffa22fa31a765d724e Mon Sep 17 00:00:00 2001 From: mattn Date: Tue, 7 Oct 2014 20:35:09 +0900 Subject: rename --- template/go/base-web-app.go | 14 -------------- template/go/base-web-standard.go | 14 ++++++++++++++ template/go/base-web-webgo.go | 13 +++++++++++++ template/go/base-webgo.go | 13 ------------- template/go/snip-web-app-fileserve.go | 1 - template/go/snip-web-app-handlefunc.go | 3 --- template/go/snip-web-standard-fileserve.go | 1 + template/go/snip-web-standard-handlefunc.go | 3 +++ template/go/snip-web-webgo-get.go | 3 +++ template/go/snip-web-webgo-post.go | 3 +++ template/go/snip-webgo-get.go | 3 --- template/go/snip-webgo-post.go | 3 --- 12 files changed, 37 insertions(+), 37 deletions(-) delete mode 100644 template/go/base-web-app.go create mode 100644 template/go/base-web-standard.go create mode 100644 template/go/base-web-webgo.go delete mode 100644 template/go/base-webgo.go delete mode 100644 template/go/snip-web-app-fileserve.go delete mode 100644 template/go/snip-web-app-handlefunc.go create mode 100644 template/go/snip-web-standard-fileserve.go create mode 100644 template/go/snip-web-standard-handlefunc.go create mode 100644 template/go/snip-web-webgo-get.go create mode 100644 template/go/snip-web-webgo-post.go delete mode 100644 template/go/snip-webgo-get.go delete mode 100644 template/go/snip-webgo-post.go diff --git a/template/go/base-web-app.go b/template/go/base-web-app.go deleted file mode 100644 index 6788b18..0000000 --- a/template/go/base-web-app.go +++ /dev/null @@ -1,14 +0,0 @@ -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) -} -{{_filter_:web-app}} diff --git a/template/go/base-web-standard.go b/template/go/base-web-standard.go new file mode 100644 index 0000000..6788b18 --- /dev/null +++ b/template/go/base-web-standard.go @@ -0,0 +1,14 @@ +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) +} +{{_filter_:web-app}} diff --git a/template/go/base-web-webgo.go b/template/go/base-web-webgo.go new file mode 100644 index 0000000..c67b6a7 --- /dev/null +++ b/template/go/base-web-webgo.go @@ -0,0 +1,13 @@ +package main + +import ( + "github.com/hoisie/web" +) + +func main() { + web.Get("/", func() string { + return "{{_cursor_}}" + }) + web.Run(":8080") +} +{{_filter_:webgo}} diff --git a/template/go/base-webgo.go b/template/go/base-webgo.go deleted file mode 100644 index c67b6a7..0000000 --- a/template/go/base-webgo.go +++ /dev/null @@ -1,13 +0,0 @@ -package main - -import ( - "github.com/hoisie/web" -) - -func main() { - web.Get("/", func() string { - return "{{_cursor_}}" - }) - web.Run(":8080") -} -{{_filter_:webgo}} diff --git a/template/go/snip-web-app-fileserve.go b/template/go/snip-web-app-fileserve.go deleted file mode 100644 index 267ee6f..0000000 --- a/template/go/snip-web-app-fileserve.go +++ /dev/null @@ -1 +0,0 @@ -http.Handle("/", http.FileServer(http.Dir("."))) diff --git a/template/go/snip-web-app-handlefunc.go b/template/go/snip-web-app-handlefunc.go deleted file mode 100644 index 19a6495..0000000 --- a/template/go/snip-web-app-handlefunc.go +++ /dev/null @@ -1,3 +0,0 @@ -http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) { - {{_cursor_}} -}) diff --git a/template/go/snip-web-standard-fileserve.go b/template/go/snip-web-standard-fileserve.go new file mode 100644 index 0000000..267ee6f --- /dev/null +++ b/template/go/snip-web-standard-fileserve.go @@ -0,0 +1 @@ +http.Handle("/", http.FileServer(http.Dir("."))) diff --git a/template/go/snip-web-standard-handlefunc.go b/template/go/snip-web-standard-handlefunc.go new file mode 100644 index 0000000..19a6495 --- /dev/null +++ b/template/go/snip-web-standard-handlefunc.go @@ -0,0 +1,3 @@ +http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) { + {{_cursor_}} +}) diff --git a/template/go/snip-web-webgo-get.go b/template/go/snip-web-webgo-get.go new file mode 100644 index 0000000..1d24a1b --- /dev/null +++ b/template/go/snip-web-webgo-get.go @@ -0,0 +1,3 @@ +web.Get("/", func() string { + {{_cursor_}} +}) diff --git a/template/go/snip-web-webgo-post.go b/template/go/snip-web-webgo-post.go new file mode 100644 index 0000000..4d4484c --- /dev/null +++ b/template/go/snip-web-webgo-post.go @@ -0,0 +1,3 @@ +web.Post("/", func() string { + {{_cursor_}} +}) diff --git a/template/go/snip-webgo-get.go b/template/go/snip-webgo-get.go deleted file mode 100644 index 1d24a1b..0000000 --- a/template/go/snip-webgo-get.go +++ /dev/null @@ -1,3 +0,0 @@ -web.Get("/", func() string { - {{_cursor_}} -}) diff --git a/template/go/snip-webgo-post.go b/template/go/snip-webgo-post.go deleted file mode 100644 index 4d4484c..0000000 --- a/template/go/snip-webgo-post.go +++ /dev/null @@ -1,3 +0,0 @@ -web.Post("/", func() string { - {{_cursor_}} -}) -- cgit v1.2.3-54-g00ecf