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

add ReadBase64

This commit is contained in:
Tao Wen
2016-12-08 13:29:54 +08:00
parent ec19f6de6a
commit b04c1e7485
2 changed files with 55 additions and 2 deletions

13
jsoniter_base64_test.go Normal file
View File

@ -0,0 +1,13 @@
package jsoniter
import (
"testing"
"bytes"
)
func Test_read_base64(t *testing.T) {
iter := ParseString(`"YWJj"`)
if !bytes.Equal(iter.ReadBase64(), []byte("abc")) {
t.FailNow()
}
}