diff options
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -9,13 +9,11 @@ package main import ( "net/url" + "github.com/dougblack/sleepy" ) type Item struct { - sleepy.PostNotSupported - sleepy.PutNotSupported - sleepy.DeleteNotSupported } func (item Item) Get(values url.Values) (int, interface{}) { @@ -26,13 +24,11 @@ func (item Item) Get(values url.Values) (int, interface{}) { } func main() { - item := new(Item) var api = new(sleepy.Api) api.AddResource(item, "/items") api.Start(3000) - } ``` |