Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
MakeError toml.ErrorMaker `toml:"-"`
Imports []string `toml:"imports"`
Targets []Target `toml:"target"`
Sources []Source `toml:"source"`
Rules []Rule `toml:"rule"`
Converters []Converter `toml:"converter"`
ConverterHelpers []ConverterHelper `toml:"converter-helper"`
}
type Constraint ¶
type Constraint struct {
constraint.Expr
}
func (*Constraint) MarshalText ¶
func (c *Constraint) MarshalText() ([]byte, error)
func (*Constraint) UnmarshalText ¶
func (c *Constraint) UnmarshalText(text []byte) error
type ConverterHelper ¶
type Error ¶
type Error struct {
// contains filtered or unexported fields
}
type Rule ¶
type Rule struct {
Select struct {
Package *regexp.Regexp `toml:"package"`
Name *regexp.Regexp `toml:"name"`
Recv *regexp.Regexp `toml:"recv"`
Type string `toml:"type"`
TypePos toml.FieldPosition
} `toml:"select"`
Actions struct {
Include *bool `toml:"include"`
Rename string `toml:"rename"`
RenamePos toml.FieldPosition
ToCasing string `toml:"to-casing"`
ToCasingPos toml.FieldPosition
SetPackage string `toml:"set-package"`
SetPackagePos toml.FieldPosition
} `toml:"action"`
}
type Target ¶
type Target struct {
Select *Constraint `toml:"select"`
CGoEnabled *bool `toml:"cgo-enabled"`
}
Click to show internal directories.
Click to hide internal directories.