requiredoutputfields

command
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2026 License: MIT Imports: 11 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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