Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
sneljo1 committed Apr 23, 2018
1 parent c9d1694 commit 0608ed7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ The selector query accepts following couchdb operators:
## Example code
### Data

```
```golang
var TestData = map[string]interface{}{
"MARBLE1": map[string]interface{}{
"objectType": "MARBLE",
Expand Down Expand Up @@ -95,7 +95,7 @@ var TestData = map[string]interface{}{
```

### Method
```
```golang
res, err := query.ParseCouchDBQuery(TestData, map[string]interface{}{
"selector": map[string]interface{}{
"size": map[string]interface{}{
Expand All @@ -105,7 +105,7 @@ res, err := query.ParseCouchDBQuery(TestData, map[string]interface{}{
})
```
### Response
```
```golang
StateCouchDBQueryResult{
StateCouchDBQueryObject{
Key: "MARBLE0",
Expand All @@ -124,4 +124,4 @@ StateCouchDBQueryResult{
},
},
}
```
```

0 comments on commit 0608ed7

Please sign in to comment.