Workflows¶
Flow 1: Quick standalone snippet¶
- Create
snippet.go. - Ensure
package main. - Run with Play.
- Validate output in terminal.
- Discard or migrate to formal project.
Flow 2: Dependency bug reproduction¶
- Create minimal failing script.
- Run in ephemeral mode to resolve dependencies automatically.
- Iterate and rerun quickly.
Flow 3: Interactive script¶
- Build script with
fmt.Scanln. - Run via RighToGo.
- Provide input in
RighToGo Terminal.
Flow 4: Extension development cycle¶
Packaging:
Expected outputs:
- compiled JS in
dist/ .vsixinbin/
Flow 5: Run with arguments¶
- Open an eligible
.gofile. - Execute
RighToGo: Run Current Go Script (With Args). - Enter args (e.g.
--port 8080 --name "John Doe"). - Validate behavior in terminal.
Flow 6: Run in new window¶
- Execute
RighToGo: Run Current Go Script (New Window). - Extension attempts to move terminal to a new window.
- If unsupported, execution continues in panel.