diff options
author | Doug Black <dougblack@gatech.edu> | 2014-01-25 19:09:50 -0800 |
---|---|---|
committer | Doug Black <dougblack@gatech.edu> | 2014-01-25 19:09:50 -0800 |
commit | c43ecdc6549b097ec04a427e5afd7a8f6fedc320 (patch) | |
tree | bbac37de060a240e00e566b3fc52be8ab30832b0 /tests/test.go | |
parent | update README (diff) | |
download | sleepy-c43ecdc6549b097ec04a427e5afd7a8f6fedc320.tar.gz sleepy-c43ecdc6549b097ec04a427e5afd7a8f6fedc320.tar.bz2 sleepy-c43ecdc6549b097ec04a427e5afd7a8f6fedc320.zip |
cleaner
Diffstat (limited to 'tests/test.go')
-rw-r--r-- | tests/test.go | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/tests/test.go b/tests/test.go index 4610f3d..d225072 100644 --- a/tests/test.go +++ b/tests/test.go @@ -1,25 +1,24 @@ package main import ( - "sleepy" - "net/url" + "net/url" + "sleepy" ) type Bar struct { - sleepy.PostNotSupported - sleepy.PutNotSupported - sleepy.DeleteNotSupported + sleepy.PostNotSupported + sleepy.PutNotSupported + sleepy.DeleteNotSupported } func (b Bar) Get(values ...url.Values) (int, interface{}) { - return 200, map[string]string{"hello": "goodbye"} + return 200, map[string]string{"hello": "goodbye"} } func main() { - bar := new(Bar) + bar := new(Bar) - var api = new(sleepy.Api) - api.AddResource(bar, "/bar") - api.Start(3000) + var api = new(sleepy.Api) + api.AddResource(bar, "/bar") + api.Start(3000) } - |