处理AI胡乱生成的乱摊子
This commit is contained in:
8
vendor/github.com/bytedance/sonic/ast/api_compat.go
generated
vendored
8
vendor/github.com/bytedance/sonic/ast/api_compat.go
generated
vendored
@@ -1,4 +1,4 @@
|
||||
// +build !amd64 go1.21
|
||||
// +build !amd64 !go1.16 go1.22
|
||||
|
||||
/*
|
||||
* Copyright 2022 ByteDance Inc.
|
||||
@@ -27,6 +27,10 @@ import (
|
||||
`github.com/bytedance/sonic/internal/rt`
|
||||
)
|
||||
|
||||
func init() {
|
||||
println("WARNING: sonic only supports Go1.16~1.20 && CPU amd64, but your environment is not suitable")
|
||||
}
|
||||
|
||||
func quote(buf *[]byte, val string) {
|
||||
quoteString(buf, val)
|
||||
}
|
||||
@@ -49,7 +53,7 @@ func encodeBase64(src []byte) string {
|
||||
}
|
||||
|
||||
func (self *Parser) decodeValue() (val types.JsonState) {
|
||||
e, v := decodeValue(self.s, self.p)
|
||||
e, v := decodeValue(self.s, self.p, self.dbuf == nil)
|
||||
if e < 0 {
|
||||
return v
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user