macho: add go binaries (#14)

This commit is contained in:
ajwerner
2024-06-19 21:43:00 -04:00
committed by GitHub
parent 14d806678c
commit cebc896743
4 changed files with 17 additions and 0 deletions
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
+13
View File
@@ -0,0 +1,13 @@
package main
import "fmt"
var helloWorld = "Hello, World!"
func foo() {
fmt.Println(helloWorld)
}
func main() {
foo()
}
Executable
+4
View File
@@ -0,0 +1,4 @@
#!/bin/sh
GOTOOLCHAIN=go1.22.4 GOOS=darwin GOARCH=arm64 go build -o go-aarch64 go.go
GOTOOLCHAIN=go1.22.4 GOOS=darwin GOARCH=amd64 go build -o go-x86_64 go.go