处理AI胡乱生成的乱摊子
This commit is contained in:
7
vendor/github.com/bytedance/sonic/api.go
generated
vendored
7
vendor/github.com/bytedance/sonic/api.go
generated
vendored
@@ -183,4 +183,9 @@ func Get(src []byte, path ...interface{}) (ast.Node, error) {
|
||||
// which can reduce unnecessary memory copy.
|
||||
func GetFromString(src string, path ...interface{}) (ast.Node, error) {
|
||||
return ast.NewSearcher(src).GetByPath(path...)
|
||||
}
|
||||
}
|
||||
|
||||
// Valid reports whether data is a valid JSON encoding.
|
||||
func Valid(data []byte) bool {
|
||||
return ConfigDefault.Valid(data)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user