This hosts the playground server for Greet - a lightweight Go library to test greet/ping/handshake process in TCP, UDP and other popular protocols
go run ./main.goThe server starts on http://localhost:3000 by default. Set the PORT environment variable to change it:
PORT=8080 go run ./cmd/serverThis project is configured for deployment via the Vercel Go runtime. The Go Framework Preset detects the cmd/server/main.go entrypoint and the root go.mod file automatically.
- A Vercel account
- The Vercel CLI installed (
npm i -g vercel)
-
Login to Vercel:
vercel login
-
Deploy (from the project root):
vercel
-
To deploy to production:
vercel --prod
- Push this repository to GitHub, GitLab, or Bitbucket.
- Import the project on vercel.com/new.
- Vercel will automatically detect the Go framework preset — no additional configuration is needed.
- Every push to the default branch triggers a production deployment; pull requests get preview deployments.
The vercel.json file sets the framework preset to go:
{
"$schema": "https://openapi.vercel.sh/vercel.json",
"framework": "go"
}Vercel reads the Go version from the go directive in go.mod. The server binary is built and executed on the Vercel Edge Network, listening on the PORT environment variable (set automatically by Vercel).