Documentation
¶
Overview ¶
Package fieldtest helps tests check that code handling every field of a struct keeps up with fields added to it.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Fields ¶
Fields returns the names of the exported fields of the struct type t, with the fields of embedded structs promoted as Go promotes them. The struct pointer fields named in into are replaced by their own fields, as "Target.TargetStr". Fields of the sync packages are left out.
func Fill ¶
Fill sets every exported field of the struct v points to, and of the structs its pointer fields lead to, to a value that differs from the zero value and from the other fields; structs filled with different seeds differ in every field, and an even seed sets the booleans. Fields of the sync packages are left alone.
Types ¶
This section is empty.