aboutsummaryrefslogtreecommitdiff
path: root/tests/test.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/test.go
parentupdate README (diff)
downloadsleepy-c43ecdc6549b097ec04a427e5afd7a8f6fedc320.tar.gz
sleepy-c43ecdc6549b097ec04a427e5afd7a8f6fedc320.tar.bz2
sleepy-c43ecdc6549b097ec04a427e5afd7a8f6fedc320.zip
cleaner
Diffstat (limited to 'tests/test.go')
-rw-r--r--tests/test.go21
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)
}
-
bgstack15