I should have been more clear: it is known that go2goplay only handles single-file, non-test, main-package cases only for now. None of the additional functionality that the playground has accumulated over the years (multiple files, test cases, modules support, etc.) works. I remember looking into supporting these things but time-boxed myself into just getting the basic use-case up and running. I don’t remember the specific details of what issues I ran into when adjusting the playground code, nor do I know how long the go2go tool will be viable for/how much churn there will be with it.
This CL contains the altered playground source that is served
It compiles the toolchain at the dev.go2go branch of the main
Go repository, translates .go2 programs using the go2go tool,
and compiles the playground frontend binary using the dev.go2go
toolchain (to support code formatting).
The header and “About” text is updated to differentiate from
the normal playground and explain its differences,
code location, etc.
Most features present on play.golang.org are missing, and this
instance only supports single-file, non-test, main-package
programs. This was done for initial simplicity of the
Reviewed-by: Alexander Rakoczy <firstname.lastname@example.org>