1
0
mirror of https://github.com/json-iterator/go.git synced 2025-06-15 22:50:24 +02:00

reflect string

This commit is contained in:
Tao Wen
2016-12-04 11:06:38 +08:00
parent ce5b193569
commit 18a2587df6
4 changed files with 86 additions and 19 deletions

14
jsoniter_reflect_test.go Normal file
View File

@ -0,0 +1,14 @@
package jsoniter
import (
"testing"
)
func Test_reflect_str(t *testing.T) {
iter := ParseString(`"hello"`)
str := ""
iter.Read(&str)
if str != "hello" {
t.FailNow()
}
}