Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Host string `yaml:"host"` Modules []ModuleConfig `yaml:"modules"` }
Config defines the format of a modgen configuration file.
func LoadConfig ¶
LoadConfig tries to load and parse a modgen configuration file at the given path.
type Generator ¶
type Generator struct {
// contains filtered or unexported fields
}
Generator contains the context required to generate a Go module import URL static site.
func NewGenerator ¶
func (*Generator) WithIndexTemplate ¶
func (*Generator) WithModuleTemplate ¶
type ModuleConfig ¶
type ModuleConfig struct { Path string `yaml:"path"` VCS string `yaml:"vcs"` RepoURL string `yaml:"repo-url"` }
Config defines an individual module from a configuration file.
Click to show internal directories.
Click to hide internal directories.