Documentation
¶
Index ¶
Constants ¶
View Source
const (
ConfigPath = "make-rules.yaml"
)
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// Version is the project version, defaults to "1" (backwards compatibility)
Version string `json:"version,omitempty"`
// Go config
Go Go `json:"go,omitempty"`
// container config
Container Container `json:"container,omitempty"`
}
Config is the unmarshalled representation of the configuration file
func (*Config) SetDefaults ¶
func (c *Config) SetDefaults()
type GoBuild ¶
type GoBuild struct {
Platforms []string `json:"platforms,omitempty"`
OnBuildImage string `json:"onBuildImage,omitempty"`
GlobalHooksDir string `json:"globalHooksDir,omitempty"`
Flags []string `json:"flags,omitempty"`
LDFlags []string `json:"ldflags,omitempty"`
GCFlags []string `json:"gcflags,omitempty"`
}
type GoFormat ¶
type GoFormat struct {
Local string `json:"local,omitempty"`
Exclude GoFormatExclude `json:"exclude,omitempty"`
}
type GoFormatExclude ¶
type GoMod ¶
type GoMod struct {
Require []GoModRequire `json:"require,omitempty"`
Replace []GoModReplace `json:"replace,omitempty"`
}
type GoModReplace ¶
type GoModRequire ¶
Click to show internal directories.
Click to hide internal directories.