Go Online Compiler
How to run and test Go code online
- 1
Enter or paste Go code
Write Go code with a func main in the editor, or pick a preset example to start quickly. This online runner is great for snippet tests, debugging and learning demos.
- 2
Split across multiple files
One main package can be split into multiple .go files — clicking Run executes the whole project. You can also upload files or import a ZIP.
- 3
Run and inspect output
Click Run and the code executes immediately through the local Go WASM runtime. The right panel shows standard output and errors separately; an inline input box appears when the program waits for input.
- 4
Share or reuse snippets
Copy the output, restore history, or generate a shareable link so others can open and re-run the exact same Go code.
Visão geral de recursos
Run Go code directly in the browser, experiment with goroutines and channels, and test snippets. Executed locally via WebAssembly — no server, no local toolchain, code stays on your device.
Descrição da ferramenta
Free Go online compiler and playground that runs Go code in the browser. Supports goroutine demos, same-package multi-file projects, file upload and interactive input, with popular third-party packages bundled — code and data never leave your device.
Lista de capacidades
- Run Go code locally in your browser on a Go WASM runtime — no uploads.
- Experiment with goroutines, channels and select to learn Go concurrency hands-on.
- The standard library works out of the box: fmt, strings, strconv, sort, time, encoding/json, errors and more.
- Curated third-party packages are bundled (uuid, yaml.v3, errgroup, decimal) — import and go.
- Split a main package across multiple source files and run the project as a whole, with file upload and ZIP import.
- Interactive console input: standard idioms like bufio.Scanner(os.Stdin) read line by line.
- Stop infinite loops instantly and get back to a runnable state.
- Run history is stored locally — restore, re-run and compare snippets anytime.
- Generate shareable links so colleagues can reproduce the exact same Go code.
Feedback dos usuários
Ir para o feedback
Feedback dos usuários
Ferramentas relacionadas
Compilador Python Online
Execute Python 3.8-3.12 com upload de arquivos, pastas de projeto e bibliotecas populares
Compilador Java online
Execute Java 8, 11 e 17 no navegador, sem JDK
Compilador C++ Online
Compile e execute C++11 até C++23 no navegador, sem precisar instalar um compilador
Executor PHP Online
Execute e teste código PHP online, com suporte para múltiplas versões PHP 7.4-8.5 e comparação de resultados
Formatador JSON Online
Formate, valide e explore JSON no navegador: visão em árvore, linhas de erro exatas e JSONPath, sem upload