Types
FilterOption
Section titled “FilterOption”A string type representing a generator category to filter.
type FilterOption stringMethods
Section titled “Methods”String() string— returns the underlying string valueReason() FilterReason— returns the correspondingFilterReasonIsValid() bool— reports whether the value is recognized
Constants
Section titled “Constants”FilterSQLC, FilterTempl, FilterGoEnum, FilterProtobuf, FilterOapi, FilterDeepcopy, FilterWire, FilterMoq, FilterMockgen, FilterStringer, FilterGeneric, FilterAll
FilterReason
Section titled “FilterReason”A string type representing why a file was filtered.
type FilterReason stringMethods
Section titled “Methods”String() string— returns the underlying string valueIsValid() bool— reports whether the value is recognized
Constants
Section titled “Constants”ReasonSQLC, ReasonTempl, ReasonGoEnum, ReasonProtobuf, ReasonOapi, ReasonDeepcopy, ReasonWire, ReasonMoq, ReasonMockgen, ReasonStringer, ReasonGeneric, ReasonIncludePattern, ReasonExcludePattern, ReasonNotFiltered
Derived Lists
Section titled “Derived Lists”AllFilterOptions() []FilterOption
Section titled “AllFilterOptions() []FilterOption”Returns all 12 valid FilterOption values.
AllFilterReasons() []FilterReason
Section titled “AllFilterReasons() []FilterReason”Returns all 14 valid FilterReason values.
Both are derived from the internal detectors table — adding a new detector automatically updates these lists.
Invariant
Section titled “Invariant”Each FilterOption and its matching FilterReason share the same underlying string value (e.g., FilterSQLC == "sqlc" == ReasonSQLC).