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
Developers are required to use environment variables to switch in and out of workspace mode. This means using set GOWORK=off or export GOWORK=off depending on the platform. This in itself is problematic since you have to give out two different instructions (which depend on the user OS). In order to go back into workspace mode, you need to set the GOWORK variable back. If you are dealing with a long path it's time consuming and prone to error.
go work toggle
When GOWORK is set, switches the GO Workspace to off.
When GOWORK is off, switches the GO Workspace to current directory.
-d - Set directory to switch to using relative path.
The text was updated successfully, but these errors were encountered:
Since you say that this is not go env -w, I don't understand what go work toggle is going to change. It can't change the value of the GOWORK environment variable. And I think it would be very confusing if the GOWORK environment variable were not honored.
We're not going to have multiple ways of doing things, especially something like toggle which is unclear in semantics on what happens when you run it without very clear knowledge of the current state of the system.
Such a thing seems better suited as aliases / local scripts to your environment.