From 3a803ac39fe4863e2ea091dd52b7eec7d9c0ab82 Mon Sep 17 00:00:00 2001 From: huangqian Date: Thu, 24 Feb 2022 21:41:39 +0800 Subject: [PATCH] fix --- encoding/gjson/gjson_z_example_load_test.go | 1 + encoding/gjson/gjson_z_example_new_test.go | 1 + 2 files changed, 2 insertions(+) diff --git a/encoding/gjson/gjson_z_example_load_test.go b/encoding/gjson/gjson_z_example_load_test.go index 3b8a4b2ba..31f7360c1 100644 --- a/encoding/gjson/gjson_z_example_load_test.go +++ b/encoding/gjson/gjson_z_example_load_test.go @@ -119,6 +119,7 @@ func ExampleLoadContent_UTF8BOM() { content[0] = 0xEF content[1] = 0xBB content[2] = 0xBF + content = append(content, jsonContent...) j, _ := gjson.LoadContent(content) diff --git a/encoding/gjson/gjson_z_example_new_test.go b/encoding/gjson/gjson_z_example_new_test.go index 65ae2d7ab..95e8cd459 100644 --- a/encoding/gjson/gjson_z_example_new_test.go +++ b/encoding/gjson/gjson_z_example_new_test.go @@ -77,6 +77,7 @@ func ExampleNewWithOptions_UTF8BOM() { content[0] = 0xEF content[1] = 0xBB content[2] = 0xBF + content = append(content, jsonContent...) j := gjson.NewWithOptions(content, gjson.Options{ Tags: "tag",