Go/Golang Server Homepage
ENDPOINTS
Things Vercel project can do (Go + static):
- Use environment variables
Store API keys or secrets in Vercel → access via os.Getenv().
- Add redirects & rewrites
Control routing with vercel.json (SPA fallback, API routing, etc).
- Dynamic API routes
Use folders like /api/user/[id].go for parameterised endpoints.
Current Temperature
Client-side script app.js calls the Go API Weather endpoint:
/api/weather?lat=53.4808&lon=-2.2426
and process and show the results.
Latitude:
Longitude:
(default coordinates = Manchester, UK)
Div will be updated with the temperature when the button is clicked.