mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2026-02-26 16:57:08 +00:00
25 lines
347 B
Go
25 lines
347 B
Go
package features
|
|
|
|
import "runtime/debug"
|
|
|
|
var (
|
|
GOARM string
|
|
GOMIPS string
|
|
GOAMD64 string
|
|
)
|
|
|
|
func init() {
|
|
if info, ok := debug.ReadBuildInfo(); ok {
|
|
for _, bs := range info.Settings {
|
|
switch bs.Key {
|
|
case "GOARM":
|
|
GOARM = bs.Value
|
|
case "GOMIPS":
|
|
GOMIPS = bs.Value
|
|
case "GOAMD64":
|
|
GOAMD64 = bs.Value
|
|
}
|
|
}
|
|
}
|
|
}
|