diff --git a/README.md b/README.md index b481dc4..844a6eb 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,8 @@ # go-scripts -Go lang scripts \ No newline at end of file +Go lang scripts + +> https://github.com/erning/gorun.git + + + diff --git a/helloworld-go/go.mod b/helloworld-go/go.mod new file mode 100644 index 0000000..d03dd2b --- /dev/null +++ b/helloworld-go/go.mod @@ -0,0 +1,3 @@ +module helloworld + +go 1.23.0 diff --git a/helloworld-go/main.go b/helloworld-go/main.go new file mode 100755 index 0000000..3a7ee47 --- /dev/null +++ b/helloworld-go/main.go @@ -0,0 +1,8 @@ +/// 2>/dev/null ; gorun "$0" "$@" ; exit $? +// OR: #!/usr/bin/env gorun + +package main + +func main() { + println("Hello world.") +}