Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于调用原生json的方法 #715

Closed
lxj15398019970 opened this issue Nov 27, 2024 · 0 comments
Closed

关于调用原生json的方法 #715

lxj15398019970 opened this issue Nov 27, 2024 · 0 comments

Comments

@lxj15398019970
Copy link

这里为什么调用的是原生的json方法?
func (cfg frozenConfig) UnmarshalFromString(buf string, val interface{}) error { r := bytes.NewBufferString(buf) dec := json.NewDecoder(r) if cfg.UseNumber { dec.UseNumber() } if cfg.DisallowUnknownFields { dec.DisallowUnknownFields() } return dec.Decode(val) }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant