Go Backend
A reference implementation using Gin, running on port 8082.
Quick Start
bash
cd server/go
go run .Server runs at http://localhost:8082.
Framework
- Runtime: Go 1.21+
- Framework: Gin
- Port:
8082(override withPORT)
Endpoints
Implements the shared API endpoints:
GET /api/captcha— generate captcha imagePOST /api/captcha/verify— verify captchaGET /api/health— health checkGET /api/info— server infoGET/POST/DELETE /api/security/*— IP blacklist management
Environment Variables
See the shared environment variables. Go defaults: PORT=8082, HOST=localhost.
TIP
This is a reference implementation, not a published package. Copy the code you need into your own Go project.