Skip to content

Commit e0513a7

Browse files
committed
README: add demo of -play with GOEXPERIMENT
1 parent 487d1d6 commit e0513a7

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,12 +81,18 @@ func main() {
8181
}
8282
```
8383

84-
Share the code on `go.dev`:
84+
Share the code on `go.dev/play`:
8585
```console
8686
$ goeval -share 'fmt.Println(time.Now())'
8787
https://go.dev/play/p/Z35Vf8gIg4Z
8888
```
8989

90+
Run on [`go.dev/play`](https://go.dev/play) with GOEXPERIMENT (the Go Playground enables GOEXPERIMENT via special comment):
91+
```console
92+
$ GOEXPERIMENT=rangefunc goeval -play 'fmt.Println(runtime.Version())'
93+
go1.24.4 X:rangefunc
94+
```
95+
9096
## ⬇️ Install
9197

9298
```console

0 commit comments

Comments
 (0)