From 914a16d1987f0fd8000532e010466f11e3b88e1d Mon Sep 17 00:00:00 2001 From: Shivam Rathore Date: Mon, 7 Jan 2019 00:43:15 +0530 Subject: [PATCH] example fixed --- examples/json_obj.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/json_obj.go b/examples/json_obj.go index 649cd83..022cd24 100644 --- a/examples/json_obj.go +++ b/examples/json_obj.go @@ -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