From 8ca11ecec4b749edaf27d217ca20c1ff139c004b Mon Sep 17 00:00:00 2001 From: Gustav Westling Date: Wed, 15 Feb 2017 18:14:42 +0100 Subject: [PATCH] README cleanup --- README.md | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 80cc3e4..231b085 100644 --- a/README.md +++ b/README.md @@ -145,15 +145,13 @@ Check [godoc](https://godoc.org/github.com/zegl/goriak#Set) for more information Values can be automatically JSON Marshalled/Unmarshalled by using `SetJSON()` and `GetJSON()`. There is also `SetRaw()` and `GetRaw()` that works directly on `[]byte`s. -## SetJSON +## JSON ```go +// Set object goriak.Bucket("bucket-name", "bucket-type").SetJSON(obj).Key("key").Run(con) -``` - -## GetJSON -```go +// Get object goriak.Bucket("bucket-name", "bucket-type").GetJSON("key", &obj).Run(con) ```