mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-04 19:17:47 +00:00
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:
committed by
Ron Evans
parent
3177591b31
commit
0d646d8e95
Vendored
+1
-1
@@ -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'))
|
||||
|
||||
Reference in New Issue
Block a user