Skip to content

Commit

Permalink
README cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
zegl committed Feb 15, 2017
1 parent 1acd136 commit 8ca11ec
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
```

Expand Down

0 comments on commit 8ca11ec

Please sign in to comment.