X-Git-Url: https://git.josue.xyz/?a=blobdiff_plain;f=golang%2Fgolang.bash;h=f599c761466fa91449e51f42adda2ec3ef87f9d7;hb=1971946c3be75d65f8e8226bc673448947aedea7;hp=e61de1408bfa91c9f4b9a68638f23d191b4e4758;hpb=e2106ad49f2da8616432d02fa505820cbb4d3511;p=webi-installers%2F.git diff --git a/golang/golang.bash b/golang/golang.bash index e61de14..f599c76 100644 --- a/golang/golang.bash +++ b/golang/golang.bash @@ -5,6 +5,34 @@ # tagline: The Go Programming Language tools # description: | # Go is an open source programming language that makes it easy to build simple, reliable, and efficient software. +# examples: | +# ```bash +# mkdir -p hello/ +# pushd hello/ +# ``` +#
+# +# ```bash +# cat << EOF >> main.go +# package main +# +# import ( +# "fmt" +# ) +# +# func main () { +# fmt.Println("Hello, World!") +# } +# EOF +# ``` +#
+# +# ```bash +# go fmt ./... +# go build . +# ./hello +# > Hello, World! +# ``` set -e set -u