Skip to content

Commit

Permalink
Merge pull request #22 from Shivam010/master
Browse files Browse the repository at this point in the history
Example `json_obj.go` fixed
  • Loading branch information
nitishm authored Jan 7, 2019
2 parents 76806f6 + 914a16d commit 18dc12c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/json_obj.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ func main() {
fmt.Println("Memory used by obj:", res)

res, err = rejson.JSONGet(conn, "obj", ".",
&rejson.JSONGetOptionIndent{"\t"}, &rejson.JSONGetOptionNewLine{"\n"},
&rejson.JSONGetOptionSpace{" "}, &rejson.JSONGetOptionNoEscape{})
rejson.NewJSONGetOptionIndent("\t"), rejson.NewJSONGetOptionNewLine("\n"),
rejson.NewJSONGetOptionSpace(" "), rejson.NewJSONGetOptionNoEscape())
if err != nil {
log.Fatalf("Failed to JSONGet")
return
Expand Down

0 comments on commit 18dc12c

Please sign in to comment.