From c43ecdc6549b097ec04a427e5afd7a8f6fedc320 Mon Sep 17 00:00:00 2001 From: Doug Black Date: Sat, 25 Jan 2014 19:09:50 -0800 Subject: cleaner --- tests/one.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 tests/one.go (limited to 'tests/one.go') diff --git a/tests/one.go b/tests/one.go new file mode 100644 index 0000000..15fd27b --- /dev/null +++ b/tests/one.go @@ -0,0 +1,14 @@ +package main + +import ( + "net/http" +) + +func response(rw http.ResponseWriter, request *http.Request) { + rw.Write([]byte("Hello world.")) +} + +func main() { + http.HandleFunc("/", response) + http.ListenAndServe(":3000", nil) +} -- cgit