diff options
author | René 'Necoro' Neumann <necoro@necoro.eu> | 2022-02-02 23:49:05 +0100 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.eu> | 2022-02-02 23:49:05 +0100 |
commit | 14d5d88df1e380bb78340952aa55780bbcb620e5 (patch) | |
tree | 708a9d0753439283488b12144b12c186bc84defc /main.go | |
parent | 80faa52aaf2e48092f8d8e0b1d9da59e6b47b098 (diff) | |
download | engarde-importer-master.tar.gz engarde-importer-master.tar.bz2 engarde-importer-master.zip |
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -9,8 +9,8 @@ import ( ) type EngardeConfig struct { - inputFile string - outputDir string + InputFile string + OutputDir string Name string Description string Gender Gender @@ -26,8 +26,8 @@ func usage() string { } func parseArgs() (config EngardeConfig, err error) { - config.inputFile = os.Args[1] - config.outputDir = os.Args[2] + config.InputFile = os.Args[1] + config.OutputDir = os.Args[2] config.Name = os.Args[3] if config.Gender, err = GenderFromString(os.Args[4]); err != nil { @@ -57,12 +57,12 @@ func run() error { return err } - cfg.Participants, cfg.Clubs, err = parseOphardtInput(cfg.inputFile) + cfg.Participants, cfg.Clubs, err = parseOphardtInput(cfg.InputFile) if err != nil { return err } - return write(cfg) + return Write(cfg) } func main() { |