aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md6
1 files changed, 1 insertions, 5 deletions
diff --git a/README.md b/README.md
index 5447f30..97c01ce 100644
--- a/README.md
+++ b/README.md
@@ -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)
-
}
```
bgstack15