diff options
| author | Jeff Carr <[email protected]> | 2024-11-29 21:49:11 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-11-29 21:49:11 -0600 |
| commit | de3b63c1b01c70181018b0676258977c3b25ea78 (patch) | |
| tree | 1e6b603b82a732f05e19515889e6c6640feca157 | |
| parent | 58f595f10f4db5d273b83bb9b30d3b138dcb3560 (diff) | |
golang 1.20 should be new enoughv0.0.1
| -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}}'"} |
