build: update go version to 1.16 in go.mod

Make go version latest in the repo

Signed-off-by: Humble Chirammal <hchiramm@redhat.com>
This commit is contained in:
Humble Chirammal
2021-05-10 11:59:04 +05:30
committed by mergify[bot]
parent 2b9f6c3598
commit 9aa3520c9d
5 changed files with 67 additions and 6 deletions

View File

@ -60,9 +60,9 @@ else
fi
# parse the Golang version, return the digit passed as argument
# 1.13.9 -> go_version 1 -> 1
# 1.13.9 -> go_version 2 -> 13
# 1.13.9 -> go_version 3 -> 9
# 1.16.4 -> go_version 1 -> 1
# 1.16.4 -> go_version 2 -> 16
# 1.16.4 -> go_version 3 -> 4
go_version() {
go version | cut -d' ' -f3 | sed 's/^go//' | cut -d'.' -f"${1}"
}