Documentation
¶
Overview ¶
Command overwidecandidates regenerates the over-wide List-response candidate list for gopherstack-dv4s (see services/_OVERWIDE_CANDIDATES.md).
For each services/<dir>, it resolves the pinned aws-sdk-go-v2/service/<mod>@<version> from go.mod (directory name and module name diverge for a handful of services — see dirModuleOverride), reads every api_op_List*.go Output struct from $(go env GOMODCACHE)/github.com/aws/aws-sdk-go-v2/service/<mod>@<version>, and flags slice fields whose element type is a types.* struct matching Summary|Item|Brief|Entry|Ref|Preview|Metadata|Info — plus one level of pointer-to-wrapper-struct indirection (the classic REST-XML FooList{ Items []FooSummary } shape).
This is a candidate list only: it flags AWS's real Output shape as narrower than a raw domain struct by name pattern. It does not read gopherstack's own handler/converter code, so a hit still needs per-op verification against the real Summary struct before being called a leak — see services/_OVERWIDE_CANDIDATES.md for the false-positive classes already paid for.
Usage:
go run ./cmd/overwidecandidates # ranked summary to stdout go run ./cmd/overwidecandidates -json out.json # full per-op detail