Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[go/en] Go - link to playground version of lerngo.go #318

Closed
kylelemons opened this issue Sep 5, 2013 · 6 comments
Closed

[go/en] Go - link to playground version of lerngo.go #318

kylelemons opened this issue Sep 5, 2013 · 6 comments

Comments

@kylelemons
Copy link

http://learnxinyminutes.com/docs/go/

It would be awesome if there were a link to open that file up in the playground, where people could play around with it in addition to reading it.

@jcbohin
Copy link
Contributor

jcbohin commented Aug 4, 2014

Actually, it would be a really good idea, although the sandboxing environment provided by go playground prevents some of the interactions (mostly network ones) we use in the code right now. This is the actual code in playground.

I'll take a look to create a playground gist with current learnxinyminutes without those calls if it complies with learnxinyminutes policy.

@jcbohin
Copy link
Contributor

jcbohin commented Aug 4, 2014

I just sent an email to golang-dev to see if it's ok to link (although I'm pretty sure it is) to playground from learnxinyminutes.

@jcbohin
Copy link
Contributor

jcbohin commented Aug 4, 2014

Good news n# 1 is that playground maintainer seems dedicated to enforce playground URL to last forever.

@kylelemons
Copy link
Author

The playground has a fake clock, fake filesystem and fake networking now,
so you may actually be able to update the playground version to work.

@jcbohin
Copy link
Contributor

jcbohin commented Aug 5, 2014

Yes, apparently, but we should modify quite heavily the examples since it's basically mocking networking, the control flow won't go far...

@kylelemons
Copy link
Author

You could add something like an init function after main() that creates the
mock files and does the other half of network communication

vendethiel added a commit that referenced this issue Aug 8, 2014
[go/en] Adding Go playground link with code - fixes #318
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants