Online Go Runner
Edit and run Go programs with standard input. See program output, compiler diagnostics and errors in a dedicated console.
Go workspace
Go · Standard library
Run code to see its output.
When you run a program, its code and input are sent to a separate sandbox.
Run Go code online with standard input
Load the standard input example, change the values in the input panel, and select Run. Go can read these values with fmt.Scan or a bufio.Scanner. Check Standard output for the result. If the program fails to compile, read the diagnostics for the line and column to correct.
The workbench builds root-level Go files in the same main package with the available standard library. Try the helper-file example to call a function defined in a separate file. Drafts stay in your browser. Source files and input are sent to the isolated service on Run.
Comments
Sign in or create an account to join the discussion.
Loading comments…