Documentation
¶
Index ¶
- func Init(path string)
- type CodeTemplate
- type Config
- func (c *Config) AddOiTemplate() (err error)
- func (c *Config) AddTemplate() (err error)
- func (c *Config) RemoveTemplate() (err error)
- func (c *Config) SetDbPath() (err error)
- func (c *Config) SetDefaultNaming() (err error)
- func (c *Config) SetDefaultTemplate() (err error)
- func (c *Config) SetFolderName() (err error)
- func (c *Config) SetGenAfterParse() (err error)
- func (c *Config) SetHost() (err error)
- func (c *Config) SetProxy() (err error)
- func (c *Config) TemplateByAlias(alias string) []CodeTemplate
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CodeTemplate ¶
type Config ¶
type Config struct {
Template []CodeTemplate `json:"template"`
Default int `json:"default"`
GenAfterParse bool `json:"gen_after_parse"`
CodeforcesHost string `json:"codeforces_host"`
SzkopulHost string `json:"szkopul_host"`
SioStaszicHost string `json:"sio_staszic_host"`
SioMimuwHost string `json:"sio_mimuw_host"`
SioTalentHost string `json:"sio_talent_host"`
Proxy string `json:"proxy"`
FolderName map[string]string `json:"folder_name"`
DefaultNaming map[string]string `json:"default_naming"`
DbPath string `json:"db_path"`
PackagesPath string `json:"packages_path"`
// contains filtered or unexported fields
}
var Instance *Config
func (*Config) AddOiTemplate ¶ added in v0.9.2
func (*Config) AddTemplate ¶
func (*Config) RemoveTemplate ¶
func (*Config) SetDefaultNaming ¶
func (*Config) SetDefaultTemplate ¶
func (*Config) SetFolderName ¶
func (*Config) SetGenAfterParse ¶
func (*Config) TemplateByAlias ¶
func (c *Config) TemplateByAlias(alias string) []CodeTemplate
Click to show internal directories.
Click to hide internal directories.