Go backend part of httpepe project.
Using Taskfile.yml
https://taskfile.dev/
Build
❯ task build
task: [build] go build -o bin/httpepe main.go
Run dev
❯ task run-dev
task: [run-dev] go run main.go
Run with binary
❯ task run
task: [build] go build -o bin/httpepe main.go
task: [run] bin/httpepe
Query
❯ curl http://127.0.0.1:3000/api/codes | jq
Answer
{
"data": [
{
"id": 100,
"message": "Continue"
},
// truncated
{
"id": 599,
"message": "Network Connect Timeout Error"
}
]
}