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.