golang 1.20 should be new enough
This commit is contained in:
parent
58f595f10f
commit
de3b63c1b0
1
Makefile
1
Makefile
|
@ -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
|
||||
|
|
2
main.go
2
main.go
|
@ -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}}'"}
|
||||
|
|
Loading…
Reference in New Issue