Skip to content

manishkr108/golang-master

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸš€ 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

About

golang-master

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages