Go Package Architecture

How internal/ packages are organized in a Go project and how errors travel across their boundaries. Use when creating a package under internal/, deciding between domain and layered organization, choosing where to wrap an error, designing a persistence layer, or shaping a config struct that a command fills from flags. Triggers on internal/ package creation, fmt.Errorf wrapping, Store interfaces, JSONStore, handlers/services/models directories, and http.Client construction.

Tanq16 307ad29 5.6 KB Updated

File contents

Tanq16/claudex/tree/main/internal/embedded/presets/private/skills/go-package-architecture commit 307ad29f53

Frequently asked questions

npx skillmds@latest add tanq16/go-package-architecture