Skip to content

Instantly share code, notes, and snippets.

@geberl
Created July 12, 2023 07:26
Show Gist options
  • Save geberl/ea5fb7d999b3a5999e42b4339996dfda to your computer and use it in GitHub Desktop.
Save geberl/ea5fb7d999b3a5999e42b4339996dfda to your computer and use it in GitHub Desktop.
Go scripting, chmod +x script.go
///usr/bin/env go run "$0" "$@"; exit
package main
import "fmt"
func main() {
fmt.Println("My first Go script")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment