Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { Debug bool Class string ValidateOnly bool // contains filtered or unexported fields }
Config is the configuration for the code generation.
func (*Config) AddMethodFilter ¶
AddMethodFilter adds a method to the list of methodFilters to generate.
func (*Config) MethodFilter ¶
func (cfg *Config) MethodFilter() *MethodFilter
MethodFilter creates and returns a new method filter for the current config.
type MethodFilter ¶
type MethodFilter struct {
// contains filtered or unexported fields
}
MethodFilter is a filter for methods to be generated.
func NewMethodFilter ¶
func NewMethodFilter(filters []string) *MethodFilter
NewMethodFilter creates a new MethodFilter.
func (*MethodFilter) Filter ¶
func (md *MethodFilter) Filter(method string) bool
Filter returns true if the method matches one of the filters. In case no filter matches the method, the method is allowed.
Click to show internal directories.
Click to hide internal directories.