Open lesiw opened 4 months ago
This issue is stale because it has been open for 15 days with no activity. It will be closed if no further activity occurs. Thank you.
So at the moment, Playground offers two modes:
go:generate
.go:generate
on build server for security reasons.Regarding first mode - I suggest creating an issue in go's repo.
Regarding WASM - there is a plan to move Go compiler into a browser. This will resolve potential security concerns but still go:generate
support will be limited to only running other Go packages.
One of the limitations of the original Go Playground is that
//go:generate
directives are not evaluated before program execution. It might be useful to have a playground that permits experimentation with generated code.Here's an example of a program using the
stringer
package, as demonstrated in the original blog post announcing go:generate.