From 51af774189e4f1cbc06776c53bd0c1bf5fad13b6 Mon Sep 17 00:00:00 2001 From: Matthew Baird Date: Mon, 14 Apr 2014 11:04:27 -0700 Subject: [PATCH] use %v to print out value instead of casting to string --- tutorial/start_1.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tutorial/start_1.go b/tutorial/start_1.go index 36088f66..4d074c76 100644 --- a/tutorial/start_1.go +++ b/tutorial/start_1.go @@ -53,7 +53,7 @@ func main() { }` out, err := core.SearchRequest("testindex", "user", nil, searchJson) if len(out.Hits.Hits) == 1 { - fmt.Println(string(out.Hits.Hits[0].Source)) + fmt.Println("%v", out.Hits.Hits[0].Source) } exitIfErr(err)