Documentation
v1.0.0
Backend
Go

Deploy Go

Go backends work through a normal Mekong tunnel. Start the server locally, then expose its port.

This is the right setup for plain net/http, Gin, Fiber, Echo, Chi, and similar Go servers.

Basic flow

go run main.go
mekong 8080

Replace 8080 with the port your Go server actually listens on.

Common Go examples

# Gin
go run main.go
mekong 8080
 
# Fiber
go run main.go
mekong 3000
 
# Echo
go run main.go
mekong 1323

Frontend + backend split

If you have a React or Vue frontend:

  • upload the built frontend through /dashboard/deploy
  • keep the Go API running locally or on your VM
  • expose the API port with mekong <port>

When to use this

Use a tunnel when:

  • the Go backend should run as a live process
  • you are testing APIs, webhooks, or callbacks
  • requests should reach your running backend directly