Structured application errors with typed codes, cause chaining, key-value context fields, and zero-import logz enrichment bridge. What's included: - `*Err` type implementing error, errors.Unwrap, json.Marshaler, ErrorCode(), and ErrorContext() - Twelve typed Code constants aligned with gRPC canonical status names - New / Wrap factory constructors plus InvalidInput / NotFound / Internal convenience constructors - Builder methods WithContext and WithError for attaching structured fields and causes - Duck-typed ErrorCode() / ErrorContext() bridge so logz auto-enriches log records without an import Tested-via: todo-api POC integration Reviewed-against: docs/adr/
26 lines
622 B
JSON
26 lines
622 B
JSON
{
|
|
"name": "Go",
|
|
"image": "mcr.microsoft.com/devcontainers/go:2-1.25-trixie",
|
|
"features": {
|
|
"ghcr.io/devcontainers-extra/features/claude-code:1": {}
|
|
},
|
|
"forwardPorts": [],
|
|
"postCreateCommand": "go version",
|
|
"customizations": {
|
|
"vscode": {
|
|
"settings": {
|
|
"files.autoSave": "afterDelay",
|
|
"files.autoSaveDelay": 1000,
|
|
"explorer.compactFolders": false,
|
|
"explorer.showEmptyFolders": true
|
|
},
|
|
"extensions": [
|
|
"golang.go",
|
|
"eamodio.golang-postfix-completion",
|
|
"quicktype.quicktype",
|
|
"usernamehw.errorlens"
|
|
]
|
|
}
|
|
},
|
|
"remoteUser": "vscode"
|
|
} |