From 8dc6b5f5dd26eb061b82ecf682fbda5bc050bd64 Mon Sep 17 00:00:00 2001 From: "duanyi.aster" Date: Thu, 12 Oct 2023 11:14:30 +0800 Subject: [PATCH] test --- ast/api_compat.go | 2 +- ast/b64_compat.go | 4 ---- decoder/decoder_compat.go | 2 +- encoder/encoder_compat.go | 2 +- 4 files changed, 3 insertions(+), 7 deletions(-) diff --git a/ast/api_compat.go b/ast/api_compat.go index 4ddab814c..b8df8b041 100644 --- a/ast/api_compat.go +++ b/ast/api_compat.go @@ -27,7 +27,7 @@ ) func init() { - println("WARNING: sonic only supports Go1.16~1.20 && CPU amd64, but your environment is not suitable") + println("WARNING:(ast) sonic only supports Go1.16~1.20 && CPU amd64, but your environment is not suitable") } func quote(buf *[]byte, val string) { diff --git a/ast/b64_compat.go b/ast/b64_compat.go index 865aca52d..229fb41c2 100644 --- a/ast/b64_compat.go +++ b/ast/b64_compat.go @@ -22,10 +22,6 @@ import ( `encoding/base64` ) -func init() { - println("WARNING: sonic only supports Go1.16~1.20 && CPU amd64, but your environment is not suitable") -} - func decodeBase64(src string) ([]byte, error) { return base64.StdEncoding.DecodeString(src) } diff --git a/decoder/decoder_compat.go b/decoder/decoder_compat.go index 84bae4387..c7dd1c7ad 100644 --- a/decoder/decoder_compat.go +++ b/decoder/decoder_compat.go @@ -30,7 +30,7 @@ import ( ) func init() { - println("WARNING: sonic only supports Go1.16~1.20 && CPU amd64, but your environment is not suitable") + println("WARNING(decoder): sonic only supports Go1.16~1.20 && CPU amd64, but your environment is not suitable") } const ( diff --git a/encoder/encoder_compat.go b/encoder/encoder_compat.go index 2e02b59cd..cefdda558 100644 --- a/encoder/encoder_compat.go +++ b/encoder/encoder_compat.go @@ -28,7 +28,7 @@ import ( ) func init() { - println("WARNING: sonic only supports Go1.16~1.20 && CPU amd64, but your environment is not suitable") + println("WARNING(encoder): sonic only supports Go1.16~1.20 && CPU amd64, but your environment is not suitable") } // Options is a set of encoding options.