Files
tmpl-test-go/README.md
Scaffolder e868792eda
All checks were successful
Build and Push to ACR / Platform guard (push) Successful in 5s
Build and Push to ACR / Build and Push (push) Has been skipped
initial commit
Change-Id: Ied1b5f2137f2b5f803d5411235607bd27c5e57ba
2026-03-24 10:43:21 +00:00

32 lines
588 B
Markdown

# tmpl-test-go
Test scaffold for go runtime
**Runtime**: Go 1.22 · net/http
**Owner**: platform-engineering
## Quick Start
```bash
go mod tidy
go run .
```
Service on **http://localhost:8080**.
## Endpoints
| Method | Path | Description |
|--------|------|-------------|
| GET | `/api/items` | List items |
| POST | `/api/items` | Create item |
| GET | `/api/items/{id}` | Get by ID |
| PUT | `/api/items/{id}` | Update |
| DELETE | `/api/items/{id}` | Delete |
| GET | `/health` | `{"status":"UP"}` |
| GET | `/metrics` | Prometheus metrics |
## Test
```bash
go test ./...
```