From c43ecdc6549b097ec04a427e5afd7a8f6fedc320 Mon Sep 17 00:00:00 2001 From: Doug Black Date: Sat, 25 Jan 2014 19:09:50 -0800 Subject: cleaner --- tests/test.go | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) (limited to 'tests/test.go') 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) } - -- cgit