Documentation
¶
Index ¶
Constants ¶
View Source
const ( // ConfigFileDir is the directory of the configuration file. ConfigFileDir = "." // ConfigFileName is the name of the configuration file. ConfigFileName = "gic.config" // ConfigFileType is the type of the configuration file. ConfigFileType = "yaml" )
Variables ¶
This section is empty.
Functions ¶
func GetConfigPath ¶
func GetConfigPath() string
Types ¶
type Config ¶
type Config struct {
GitHub *GitHubConfig `yaml:"github"`
Hugo *HugoConfig `yaml:"hugo"`
}
type GitHubConfig ¶
type GitHubConfig struct {
Username string `yaml:"username"`
Repository string `yaml:"repository"`
}
func (*GitHubConfig) RepositoryURL ¶
func (c *GitHubConfig) RepositoryURL() string
type HugoConfig ¶
type HugoConfig struct {
Bundle string `yaml:"bundle"`
Directory *HugoDirectoryConfig `yaml:"directory"`
Url *HugoURLConfig `yaml:"url"`
}
func (*HugoConfig) IsValidBundleType ¶
func (c *HugoConfig) IsValidBundleType() bool
type HugoDirectoryConfig ¶
type HugoURLConfig ¶
Click to show internal directories.
Click to hide internal directories.