diff options
author | Alex Lobunets <alexander.lobunets@gmail.com> | 2014-02-07 10:09:23 +0100 |
---|---|---|
committer | Alex Lobunets <alexander.lobunets@gmail.com> | 2014-02-07 10:09:23 +0100 |
commit | 22611424746fe906dbf8ecfc402e29833b60415d (patch) | |
tree | 3176986db30df69407237442da3f216e01e4e8ac | |
parent | Added request headers as Get/Put/Post/Delete argument. Added response headers... (diff) | |
download | sleepy-22611424746fe906dbf8ecfc402e29833b60415d.tar.gz sleepy-22611424746fe906dbf8ecfc402e29833b60415d.tar.bz2 sleepy-22611424746fe906dbf8ecfc402e29833b60415d.zip |
Updated type in the README
-rw-r--r-- | README.md | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -17,7 +17,7 @@ type Item struct { } func (item Item) Get(values url.Values, headers map[string][]string) (int, interface{}, map[string][]string) { items := []string{"item1", "item2"} data := map[string][]string{"items": items} - return 200, data, map[string][]string{"Content-type": "application/json"} + return 200, data, map[string][]string{"Content-type": {"application/json"}} } func main() { |