Documentation ¶
Index ¶
Constants ¶
View Source
const ConfigFileTemplate = `credentials:
user_name: ""
password: ""
languages:
py: "python3"`
Variables ¶
View Source
var ConfigPath = "~/.atc.yml"
Functions ¶
func ExistConfig ¶
func ExistConfig() bool
func GenerateConfig ¶
func GenerateConfig() error
Types ¶
type Config ¶
type Config struct { CredentialsConfig `yaml:"credentials"` LanguagesConfig `yaml:"languages"` }
type CredentialsConfig ¶
type Examples ¶
type Examples []*Example
Examples is multiple Example
func GetExamples ¶
GetExamples return Examples TODO 41 以下のコンテストでもできるようにする TODO URLとコンテスト番号がマッチしていないものにも対応したい なぜ goquery はpre#pre-pre-sample0 を探せないのか
type LanguagesConfig ¶
func (LanguagesConfig) GetLanguagePath ¶
func (lc LanguagesConfig) GetLanguagePath(fileName string) string
GetLanguagePath return local laguange path TODO 実行にコンパイルの必要な言語にも対応する
Click to show internal directories.
Click to hide internal directories.