Skip to content

Commit

Permalink
use %v to print out value instead of casting to string
Browse files Browse the repository at this point in the history
  • Loading branch information
mattbaird committed Apr 14, 2014
1 parent 7e48d22 commit 51af774
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tutorial/start_1.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 51af774

Please sign in to comment.