From 55ea7e2f19cf9808af8c3bd2a38c0f8a37b483ea Mon Sep 17 00:00:00 2001 From: guoguangwu Date: Thu, 29 Jun 2023 16:27:37 +0800 Subject: [PATCH] chore: use out.String() instead of string(out.Bytes()) --- examples/app.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/app.go b/examples/app.go index 2b29e0d8..66b8f7b2 100644 --- a/examples/app.go +++ b/examples/app.go @@ -130,6 +130,6 @@ func exerciseHandler() { json.NewEncoder(out).Encode(responseBlog) fmt.Println("================ Viola! Converted back our Blog struct =================") - fmt.Println(string(out.Bytes())) + fmt.Println(out.String) fmt.Println("================ end marshal materialized Blog struct =================") }