aboutsummaryrefslogtreecommitdiff
path: root/tests/one.go
diff options
context:
space:
mode:
authorDoug Black <dougblack@gatech.edu>2014-01-25 19:09:50 -0800
committerDoug Black <dougblack@gatech.edu>2014-01-25 19:09:50 -0800
commitc43ecdc6549b097ec04a427e5afd7a8f6fedc320 (patch)
treebbac37de060a240e00e566b3fc52be8ab30832b0 /tests/one.go
parentupdate README (diff)
downloadsleepy-c43ecdc6549b097ec04a427e5afd7a8f6fedc320.tar.gz
sleepy-c43ecdc6549b097ec04a427e5afd7a8f6fedc320.tar.bz2
sleepy-c43ecdc6549b097ec04a427e5afd7a8f6fedc320.zip
cleaner
Diffstat (limited to 'tests/one.go')
-rw-r--r--tests/one.go14
1 files changed, 14 insertions, 0 deletions
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)
+}
bgstack15