Documentation ¶ Overview ¶ Package populatetest fills reflect values with non-zero samples derived from their types. Only tests import it. Index ¶ func NonZero(v reflect.Value, tag string) bool Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func NonZero ¶ func NonZero(v reflect.Value, tag string) bool NonZero fills v with a value distinguishable from the zero value, derived from v's type. String samples include the tag, so a value traces back to the field it was built for. It reports false for a kind it cannot build. Types ¶ This section is empty. Source Files ¶ View all Source files populatetest.go Click to show internal directories. Click to hide internal directories.