Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collection ¶
type Collection []Enum
Collection contains found matches from All and can be diffed against values
func All ¶
func All(pkg string, typ string) (Collection, error)
All finds all variables of typ in pkg
pkg is a full or relative path. typ is a type in the form: pkgname.Type
Example: All("./feature", "feature.Flag")
func (Collection) Diff ¶
func (e Collection) Diff(actual interface{}) Diff
Diff indicates differences between a collection and any slice Because a Collection stores all values as strings the difference is calculated based on the string representation of the value.
Click to show internal directories.
Click to hide internal directories.