diff options
| -rw-r--r-- | Makefile | 1 | ||||
| -rw-r--r-- | main.go | 2 |
2 files changed, 3 insertions, 0 deletions
@@ -28,6 +28,7 @@ redomod: rm -f go.* GO111MODULE= go mod init GO111MODULE= go mod tidy + go mod edit -go=1.20 reset: # clear your terminal @@ -1,3 +1,4 @@ +// +build go1.20 package main import ( @@ -47,6 +48,7 @@ func main() { if !shell.Exists("go.sum") { shell.Run([]string{"go", "mod", "init"}) shell.Run([]string{"go", "mod", "tidy"}) + shell.Run([]string{"go", "mod", "edit", "-go=1.20"}) } cmd := []string{"go", "list", "-f", "'{{.Name}}'"} |
