This commit is contained in:
huangqian
2022-02-24 21:41:39 +08:00
parent f54d0a339c
commit 3a803ac39f
2 changed files with 2 additions and 0 deletions

View File

@ -119,6 +119,7 @@ func ExampleLoadContent_UTF8BOM() {
content[0] = 0xEF
content[1] = 0xBB
content[2] = 0xBF
content = append(content, jsonContent...)
j, _ := gjson.LoadContent(content)

View File

@ -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",