Educational Use¶
Scenario¶
Instructors and students often need to validate Go snippets quickly without the overhead of full project scaffolding.
How RighToGo helps¶
- Reduces setup steps.
- Keeps focus on concepts (loops, structs, concurrency, etc.).
- Preserves terminal interaction for input-driven exercises.
Quick lab flow¶
- Student creates
exercise.gowithpackage main. - Runs with Play.
- Iterates quickly until expected output is reached.
Example script¶
package main
import "fmt"
func main() {
var n int
fmt.Print("Type a number: ")
fmt.Scanln(&n)
fmt.Printf("Double: %d\n", n*2)
}
Outcome¶
Less time spent on setup, more time on practical learning.