Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CommentStyleType ¶ added in v1.0.0
type CommentStyleType int
const ( DoubleSlash CommentStyleType = iota MultiLine MultiLineStar )
type Config ¶ added in v1.0.0
type Config struct {
// Values is map of values. Supports two types 'const` and `regexp`. Values can be used recursively.
// DEPRECATED: Use Vars instead.
Values map[string]map[string]string `yaml:"values"`
// Template is template for checking. Uses values.
Template string `yaml:"template"`
// TemplatePath path to the template file. Useful if need to load the template from a specific file.
TemplatePath string `yaml:"template-path"`
// Vars is map of values. Values can be used recursively.
Vars map[string]string `yaml:"vars"`
// Delims represents a string marker for values. The default is "{{}}".
Delims string `yaml:"delims"`
// Parallel means a number of goroutines to proccess files. Default runtime.NumCPU()
Parallel int `yaml:"parallel"`
// Experimental is config for enabling experimental / work in progress features.
Experimental Experimental `yaml:"experimental"`
}
Config represents go-header linter setup parameters
func (*Config) FillSettings ¶ added in v1.0.0
func (*Config) GetParallel ¶ added in v1.0.0
func (*Config) GetTemplate ¶ added in v1.0.0
type ConstValue ¶
type ConstValue struct {
RawValue, Value string
}
func (*ConstValue) Clone ¶ added in v1.0.0
func (c *ConstValue) Clone() Value
func (*ConstValue) Get ¶
func (c *ConstValue) Get() string
func (*ConstValue) Raw ¶ added in v0.5.0
func (c *ConstValue) Raw() string
func (*ConstValue) String ¶ added in v0.5.0
func (c *ConstValue) String() string
type Experimental ¶ added in v1.0.0
type Experimental struct {
// CGO if true enables support for cgo files. Currently positioning of issues can be float.
CGO bool `yaml:"cgo"`
}
Experimental represents config params for enabling experimental / work in progress features
type RegexpValue ¶
type RegexpValue struct {
RawValue, Value string
}
func (*RegexpValue) Clone ¶ added in v1.0.0
func (r *RegexpValue) Clone() Value
func (*RegexpValue) Get ¶
func (r *RegexpValue) Get() string
func (*RegexpValue) Raw ¶ added in v0.5.0
func (r *RegexpValue) Raw() string
func (*RegexpValue) String ¶ added in v0.5.0
func (r *RegexpValue) String() string
Click to show internal directories.
Click to hide internal directories.