From 4ae365df8ff01808253809cab80b30debc415727 Mon Sep 17 00:00:00 2001 From: Doug Black Date: Sat, 1 Feb 2014 21:38:50 -0500 Subject: consolidate tests, add gitignore --- tests/test.go | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 tests/test.go (limited to 'tests/test.go') diff --git a/tests/test.go b/tests/test.go deleted file mode 100644 index b316043..0000000 --- a/tests/test.go +++ /dev/null @@ -1,25 +0,0 @@ -package main - -import ( - "github.com/dougblack/sleepy" - "net/url" -) - -type Item struct{} - -func (item Item) Get(values url.Values) (int, interface{}) { - items := []string{"item1", "item2"} - data := map[string][]string{"items": items} - - return 200, data -} - -func main() { - - item := new(Item) - - var api = sleepy.NewAPI() - api.AddResource(item, "/items", "/bar", "/baz") - api.Start(3000) - -} -- cgit