diff options
Diffstat (limited to 'cmd')
| -rw-r--r-- | cmd/openstore/main.go | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/cmd/openstore/main.go b/cmd/openstore/main.go new file mode 100644 index 0000000..1370606 --- /dev/null +++ b/cmd/openstore/main.go @@ -0,0 +1,16 @@ +package main + +import ( + "io" + "log" + + "net/http" +) + +func main() { + http.HandleFunc("GET /", func(w http.ResponseWriter, r *http.Request) { + io.WriteString(w, "Hello World!\n") + }) + + log.Fatal(http.ListenAndServe(":8080", nil)) +} |
