added arm detector

This commit is contained in:
didier committed 2024-07-26 12:58:42 -04:00
1 parent 78dbb155b0
commit 4071a37394
5 files changed
+32 -6

No files matched your search

+8
View File
@@ -0,0 +1,8 @@
package orangefork
func Foo() string {
if isArm {
return "is arm"
}
return "is not arm"
}
+6
View File
@@ -0,0 +1,6 @@
//go:build arm64
// +build arm64
package orangefork
const isArm = true
+6
View File
@@ -0,0 +1,6 @@
//go:build !arm && !arm64
// +build !arm,!arm64
package orangefork
const isArm = false
+1
View File
@@ -0,0 +1 @@
package orangefork