Help us shape the future of Go! Take the 2026 Go Developer Survey

requiredoutputfields

command
v1.8.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 20, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Command requiredoutputfields regenerates the required-response-member ranking for gopherstack-r80d (see services/_REQUIRED_OUTPUT_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, shared with cmd/overwidecandidates), reads every api_op_<Op>.go file from $(go env GOMODCACHE)/github.com/aws/aws-sdk-go-v2/service/<mod>@<version>, and for each "type <Op>Output struct{...}" walks blank-line-separated top-level field blocks (brace-depth tracked, so a nested struct's own blank lines never split a block early) flagging any field whose doc comment contains the exact line "This member is required."

This counts required OUTPUT members only — it says nothing about whether gopherstack's handler actually populates them. That verification is a per-service hand-read; this tool only ranks where to spend it.

Usage:

go run ./cmd/requiredoutputfields                # ranked summary to stdout
go run ./cmd/requiredoutputfields -json out.json # full per-op detail

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL