aboutsummaryrefslogtreecommitdiff
path: root/tests/test.go
diff options
context:
space:
mode:
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