warn.go 326 B

123456789101112
  1. // +build !amd64,!arm64 go1.25 !go1.17 arm64,!go1.20
  2. package compat
  3. import (
  4. "fmt"
  5. "os"
  6. )
  7. func Warn(prefix string) {
  8. 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)
  9. }