Skip to content

Commit 0608ed7

Browse files
authored
Update README.md
1 parent c9d1694 commit 0608ed7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ The selector query accepts following couchdb operators:
3333
## Example code
3434
### Data
3535

36-
```
36+
```golang
3737
var TestData = map[string]interface{}{
3838
"MARBLE1": map[string]interface{}{
3939
"objectType": "MARBLE",
@@ -95,7 +95,7 @@ var TestData = map[string]interface{}{
9595
```
9696

9797
### Method
98-
```
98+
```golang
9999
res, err := query.ParseCouchDBQuery(TestData, map[string]interface{}{
100100
"selector": map[string]interface{}{
101101
"size": map[string]interface{}{
@@ -105,7 +105,7 @@ res, err := query.ParseCouchDBQuery(TestData, map[string]interface{}{
105105
})
106106
```
107107
### Response
108-
```
108+
```golang
109109
StateCouchDBQueryResult{
110110
StateCouchDBQueryObject{
111111
Key: "MARBLE0",
@@ -124,4 +124,4 @@ StateCouchDBQueryResult{
124124
},
125125
},
126126
}
127-
```
127+
```

0 commit comments

Comments
 (0)