The old playground supports serving plain text, by appending .go to the URL. See for example https://play.golang.org/p/zVLh02x4_tA.go - this can be used to directly curl code from the playground. The new playground doesn't seem to support this, and serves HTML even when appending .go.
The old playground supports serving plain text, by appending
.goto the URL. See for example https://play.golang.org/p/zVLh02x4_tA.go - this can be used to directly curl code from the playground. The new playground doesn't seem to support this, and serves HTML even when appending.go.