Skip to content

Types

A string type representing a generator category to filter.

type FilterOption string
  • String() string — returns the underlying string value
  • Reason() FilterReason — returns the corresponding FilterReason
  • IsValid() bool — reports whether the value is recognized

FilterSQLC, FilterTempl, FilterGoEnum, FilterProtobuf, FilterOapi, FilterDeepcopy, FilterWire, FilterMoq, FilterMockgen, FilterStringer, FilterGeneric, FilterAll

A string type representing why a file was filtered.

type FilterReason string
  • String() string — returns the underlying string value
  • IsValid() bool — reports whether the value is recognized

ReasonSQLC, ReasonTempl, ReasonGoEnum, ReasonProtobuf, ReasonOapi, ReasonDeepcopy, ReasonWire, ReasonMoq, ReasonMockgen, ReasonStringer, ReasonGeneric, ReasonIncludePattern, ReasonExcludePattern, ReasonNotFiltered

Returns all 12 valid FilterOption values.

Returns all 14 valid FilterReason values.

Both are derived from the internal detectors table — adding a new detector automatically updates these lists.

Each FilterOption and its matching FilterReason share the same underlying string value (e.g., FilterSQLC == "sqlc" == ReasonSQLC).