bytedance / sonic

A blazingly fast JSON serializing & deserializing library
Apache License 2.0
6.71k stars 333 forks source link

Can we add a switch to avoid printing the warning? #535

Closed hwbrzzl closed 11 months ago

hwbrzzl commented 11 months ago
WARNING: sonic onlu supportsGo116~1.20 88 CPU amd64, but your environment is not suitable

When a third framework uses Sonic and prints this warning, some users get confused.

ii64 commented 11 months ago

Please provide which Go version GOOS and GOARCH you are using. Thanks

hwbrzzl commented 11 months ago

Thanks for your reply, my environment is Golang 1.21 and macOS, but users should have different systems and Golang versions, I want to find a way to avoid printing the warning, not only for me. Thanks ~

liuq19 commented 11 months ago

The warning is expected in the unsupported environments for Sonic, and should not be avoided.

hwbrzzl commented 11 months ago

Okay, thanks.