You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As it stands, when running a godoc server with the -play option, you can only run playable examples from the stdlib. This is due to playground requests being sent to the sandbox server at play.golang.org. As a result, your code, even though it exists in your GOPATH, is not found because it actually isn't running on the local machine.
There doesn't appear to be a direct route to changing this, but there are two candidates.
Run gotour locally and proxy connections to play.golang.org back to this local playground server.
Submit patch to go with feature to run and utilize a local playground server.
Both of these are not very straight forward. It seems like a feature that go needs, so maybe it will be worth working on. Anybody that wants to pick up the torch on such a core contribution has by bow.
As it stands, when running a godoc server with the
-play
option, you can only run playable examples from the stdlib. This is due to playground requests being sent to the sandbox server at play.golang.org. As a result, your code, even though it exists in yourGOPATH
, is not found because it actually isn't running on the local machine.There doesn't appear to be a direct route to changing this, but there are two candidates.
Both of these are not very straight forward. It seems like a feature that go needs, so maybe it will be worth working on. Anybody that wants to pick up the torch on such a core contribution has by bow.
References
The text was updated successfully, but these errors were encountered: