Re: [go-nuts] playground URL to fetch code only

2016-09-20 Thread Marvin Renich
* Nicolas Martyanoff [160920 10:07]: > curl 'https://play.golang.org/p/Vg6f0gSs3l.go', i.e. just appending '.go' will > do the trick. Excellent! Thank you! ...Marvin -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this gro

Re: [go-nuts] playground URL to fetch code only

2016-09-20 Thread Nicolas Martyanoff
On 2016-09-20 09:06, Marvin Renich wrote: > Is there a way to take a playground URL, such as > https://play.golang.org/p/Vg6f0gSs3l, and modify it (e.g. with a query > string) so that you can retrieve just the code as text without the > surrounding html? curl 'https://play.golang.org/p/Vg6f0gSs3l.

[go-nuts] playground URL to fetch code only

2016-09-20 Thread Marvin Renich
Is there a way to take a playground URL, such as https://play.golang.org/p/Vg6f0gSs3l, and modify it (e.g. with a query string) so that you can retrieve just the code as text without the surrounding html? Something like curl 'https://play.golang.org/p/Vg6f0gSs3l?text' If not, would such a featur