summaryrefslogtreecommitdiff
path: root/vendor/github.com/bytedance/sonic/internal/compat
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/bytedance/sonic/internal/compat')
-rw-r--r--vendor/github.com/bytedance/sonic/internal/compat/warn.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/vendor/github.com/bytedance/sonic/internal/compat/warn.go b/vendor/github.com/bytedance/sonic/internal/compat/warn.go
new file mode 100644
index 000000000..bd9600e5a
--- /dev/null
+++ b/vendor/github.com/bytedance/sonic/internal/compat/warn.go
@@ -0,0 +1,12 @@
+// +build !amd64,!arm64 go1.25 !go1.17 arm64,!go1.20
+
+package compat
+
+import (
+ "fmt"
+ "os"
+)
+
+func Warn(prefix string) {
+ fmt.Fprintf(os.Stderr, "WARNING: %s only supports (go1.17~1.24 && amd64 CPU) or (go1.20~1.24 && arm64 CPU), but your environment is not suitable and will fallback to encoding/json\n", prefix)
+}