You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
aoc2020/main.go

28 lines
600 B

package main // import "git.elis.nu/etu/aoc2020"
import (
"log"
"os"
"git.elis.nu/etu/aoc2020/day01"
"git.elis.nu/etu/aoc2020/day02"
"git.elis.nu/etu/aoc2020/day03"
"git.elis.nu/etu/aoc2020/utils"
)
func main() {
if len(os.Args) != 3 {
log.Fatal("Usage: Missing arguments: [dayXX] [input].txt")
}
switch os.Args[1] {
case "day01":
utils.Perf("2020-12-01", day01.ParseFile, day01.Solve1, day01.Solve2)
case "day02":
utils.Perf("2020-12-02", day02.ParseFile, day02.Solve1, day02.Solve2)
case "day03":
utils.Perf("2020-12-03", day03.ParseFile, day03.Solve1, day03.Solve2)
}
}