stubfields

command
v0.5.1 Latest Latest
Warning

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

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

Documentation

Overview

Command stubfields generates the missing plain-data fields of Go structs from the interface-gap list.

For every gap row of reason member-missing whose upstream property belongs to an interface (plain data, not a class) and whose Go owner is a struct in the repository, it adds one field with a JSON tag. The Go name, type and tag follow fixed rules (see fieldFor); a property whose type has no rule is reported and left for a person: functions, classes, generics, conditional and mapped types, and named types the owner's package does not declare. The tool never edits a method, a function or a field that exists. Its make target (see automation/make/parity.mk) reports; with APPLY=1 it writes the fields.

Jump to

Keyboard shortcuts

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