Yi Duan
67cffb15bd
feat:(ast) add fallback api on not-amd64 env ( #341 )
...
* feat:(ast) add fallback api on `not-amd64` env
* test: add native `linux-arm64` CI
* opt: just skip number chars whne `decodeFloat64`
* fmt
* fix: check EOF
2023-01-03 19:47:55 +08:00
Yi Duan
e80837a84d
fix:(ast) quote string when node.MarshalJSON() ( #155 )
...
Co-authored-by: duanyi.aster <duanyi.aster@bytedance.com>
2021-12-15 19:20:18 +08:00
Yi Duan
8405d84e31
feat: optimaze ast.Node API as container of generic values ( #150 )
...
* opt: only skip one value when call Iterator.HasNext()
* feat: V_NONE supports Set() and Add()
* feat: add node type V_ANY
* feat: ast.Node implements `json.Unmarshaler`
* fmt: use space instead of tab for indent
* feat: node V_ANY cast to Bool()\Int64()\Float64()\String()\Number()\Map()\Array()Interface()
* feat: V_NULL supports Set() and Add()
Co-authored-by: duanyi.aster <duanyi.aster@bytedance.com>
2021-12-09 15:43:51 +08:00
Yi Duan
12e088f9e9
opt(ast): append string instead of []byte ( #88 )
...
Co-authored-by: duanyi.aster <duanyi.aster@bytedance.com>
Co-authored-by: Oxygen <chenzhuoyu@users.noreply.github.com>
2021-09-06 16:58:03 +08:00
Yi Duan
1f13d31b5a
chore!: return error for scanning API ( #81 )
...
* chore!: return error for cast API
BREAKING CHANGE:
- Set()/Unset()/SetByIndex()/UnsetByIndex/Add()
- Raw()/Bool()/Int64()/Float64()/Number()/Len()/Cap()
- Values()/Properties()/Map()/Array()/Interface()
Co-authored-by: duanyi.aster <duanyi.aster@bytedance.com>
2021-08-30 17:14:38 +08:00
Yi Duan
6aec2f3722
feat(ast): Node supports MarshalJson() ( #84 )
...
Co-authored-by: duanyi.aster <duanyi.aster@bytedance.com>
2021-08-27 18:28:56 +08:00