π Go Examples SPA β Interactive Code Playground
An interactive Go (Golang) code playground built with React + Go backend, featuring:
β
Real-time code execution
β
Dropdown of Go examples (basic β advanced, including DSA)
β
Editable code editor with live output
β
Deployed on Railway for instant access
π₯ Live Demo
π Try it https://lnkd.in/g73YbXU9
πΈ Preview
(Replace with your GIF/MP4 project demo)
π οΈ Tech Stack
Frontend: React + TypeScript + TailwindCSS + Vite
Backend: Go (Golang)
Editor: Monaco Editor (VS Code-like experience)
Deployment: Railway
Other: REST API for code execution
π― Features
π Dropdown selector β Browse Go examples (Loops, Arrays, Maps, Structs, DSA, etc.)
βοΈ Interactive code editor β Edit and run Go code instantly
β‘ Fast execution β Backend compiles and runs Go code in real time
π Organized examples β Beginner β Advanced level Go snippets
π Deployed online β Accessible anywhere
π Project Structure
go-examples-spa/
βββ backend/ # Golang server (code execution API)
β βββ main.go
β βββ runner.go
βββ frontend/ # React + TypeScript UI
β βββ src/
β β βββ components/ # Dropdown, Editor, Output, etc.
β β βββ App.tsx
β β βββ api/backend.ts
βββ examples/ # Go example codes (basic to advanced)
βββ README.md
β‘ Quick Start
1οΈβ£ Clone repo
git clone (https://github.com/manishkr108/golang-master)
cd go-examples-spa
2οΈβ£ Start Backend (Go)
cd backend
go run main.go
3οΈβ£ Start Frontend (React)
cd frontend
npm install
npm run dev
Open π http://localhost:5173
π§βπ» Example Go Programs
Basics: Variables, Loops, Functions, Arrays, Maps
Intermediate: Structs, Interfaces, Concurrency (goroutines, channels)
Advanced: DSA (Linked List, Stack, Queue, Tree, Graph)
(Examples available via dropdown in UI)
π¦ Deployment
The app is deployed on Railway for production use:
Frontend: React app
Backend: Go API service
π Roadmap
Add syntax highlighting for output
Add support for Go modules & packages
Add more DSA examples
Add Docker support for local setup
π€ Contributing
Contributions are welcome! π
Fork repo
Create feature branch
Submit PR
π License
MIT License β free to use & modify.
π¨βπ» Author
π Built by Manish Raj π LinkedIn https://www.linkedin.com/in/manishk799/ | GitHub