summaryrefslogtreecommitdiff
path: root/internal/arch.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2024-02-18 12:57:28 +0000
committerPaul Buetow <paul@buetow.org>2024-02-18 12:57:28 +0000
commitd249eea1e4010b6f39d619b0968c7aa651dbc9f3 (patch)
tree0ad06bdb8503058b2fc10f7df57864ae75397492 /internal/arch.go
parentcf95f467a7b382d932c85b516e1b9aae6b73d7f5 (diff)
add arch.go
Diffstat (limited to 'internal/arch.go')
-rw-r--r--internal/arch.go14
1 files changed, 14 insertions, 0 deletions
diff --git a/internal/arch.go b/internal/arch.go
new file mode 100644
index 0000000..5424ea6
--- /dev/null
+++ b/internal/arch.go
@@ -0,0 +1,14 @@
+package internal
+
+import "runtime"
+
+func ksymArch() string {
+ switch runtime.GOARCH {
+ case "amd64":
+ return "x64"
+ case "arm64":
+ return "arm64"
+ default:
+ panic("unsupported architecture")
+ }
+}