harbor run -t openthoughts/tasktrove-exp-rpt-stack-dockerfile-gpt5mini-v3-stack-dockerfile-gpt4o-1629harbor download openthoughts/tasktrove-exp-rpt-stack-dockerfile-gpt5mini-v3-stack-dockerfile-gpt4o-1629Create a Go project in /app that implements a small HTTP JSON API for managing an in-memory todo list. The project must be buildable with the Go toolchain (go build / go test) and run with no external services. Put all source files under /app.
Requirements
Project layout
Server behavior
Data model
HTTP endpoints (all responses and requests use application/json)
GET /todos
POST /todos
GET /todos/{id}
PUT /todos/{id}
DELETE /todos/{id}
JSON encoding/decoding
Concurrency
Logging (minimal)
Tests
Expected behavior examples (curl)
Create: curl -s -X POST -H "Content-Type: application/json" -d '{"title":"Buy milk"}' http://localhost:8080/todos -> 201, body: {"id":1,"title":"Buy milk","completed":false}
List: curl -s http://localhost:8080/todos -> 200, body: [{"id":1,"title":"Buy milk","completed":false}]
Get: curl -s http://localhost:8080/todos/1 -> 200, body: {"id":1,"title":"Buy milk","completed":false}
Update: curl -s -X PUT -H "Content-Type: application/json" -d '{"completed":true}' http://localhost:8080/todos/1 -> 200, body: {"id":1,"title":"Buy milk","completed":true}
Delete: curl -s -X DELETE http://localhost:8080/todos/1 -> 204, no body
Deliverables (placed in /app)
Notes