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

#61 remove internal buffer from objectAny

This commit is contained in:
Tao Wen
2017-06-18 23:09:30 +08:00
parent 15c92d48df
commit 02cf6a73cc
3 changed files with 85 additions and 90 deletions

View File

@ -2,6 +2,7 @@ package jsoniter
import (
"strconv"
"fmt"
)
type stringAny struct {
@ -9,6 +10,13 @@ type stringAny struct {
val string
}
func (any *stringAny) Get(path ...interface{}) Any {
if len(path) == 0 {
return any
}
return &invalidAny{baseAny{}, fmt.Errorf("Get %v from simple value", path)}
}
func (any *stringAny) Parse() *Iterator {
return nil
}