summaryrefslogtreecommitdiff
path: root/vendor/github.com/bytedance/sonic/internal/compat/warn.go
blob: 4fabaabacea776e6794b9ba2a31b99e46eaa128c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// +build !amd64,!arm64 go1.26 !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)
}