From 30a6e73d17e1a0a4add4dbab5775b66f3c457d51 Mon Sep 17 00:00:00 2001 From: MajorThorn <10319786+majorthorn@users.noreply.github.com> Date: Thu, 17 Oct 2019 22:42:34 -0500 Subject: [PATCH] Added version to readme --- README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/README.md b/README.md index e19e89ef..76df0e54 100644 --- a/README.md +++ b/README.md @@ -25,6 +25,21 @@ wget -q -O - https://raw.githubusercontent.com/canha/golang-tools-install-script curl https://raw.githubusercontent.com/canha/golang-tools-install-script/master/goinstall.sh | bash ``` +## :package: Version + +Pass the `--version` option into the script including the version that you wish to install. This specify a different version without needing to change the variable in the script. + +##### Example: + +```shell +wget -q -O - https://raw.githubusercontent.com/canha/golang-tools-install-script/master/goinstall.sh \ +| bash -s -- --version 1.13.2 + +# or... +curl https://raw.githubusercontent.com/canha/golang-tools-install-script/master/goinstall.sh \ +| bash -s -- --version 1.13.2 +``` + ## :no_entry_sign: Uninstall Pass the `--remove` option into the script: