builder: add support for Go 1.20

Not all features work yet, but allow it to compile with this Go version.
This commit is contained in:
Ayke van Laethem
2023-01-13 17:53:55 +00:00
committed by Ron Evans
parent 3177591b31
commit 0d646d8e95
6 changed files with 24 additions and 10 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ func main() {
syscall.Getppid()
// package math/rand
fmt.Println("pseudorandom number:", rand.Int31())
fmt.Println("pseudorandom number:", rand.New(rand.NewSource(1)).Int31())
// package strings
fmt.Println("strings.IndexByte:", strings.IndexByte("asdf", 'd'))