diff options
| author | Paul Buetow <paul@buetow.org> | 2024-02-18 12:57:28 +0000 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2024-02-18 12:57:28 +0000 |
| commit | d249eea1e4010b6f39d619b0968c7aa651dbc9f3 (patch) | |
| tree | 0ad06bdb8503058b2fc10f7df57864ae75397492 /internal/arch.go | |
| parent | cf95f467a7b382d932c85b516e1b9aae6b73d7f5 (diff) | |
add arch.go
Diffstat (limited to 'internal/arch.go')
| -rw-r--r-- | internal/arch.go | 14 |
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") + } +} |
