2020 folder setup

This commit is contained in:
alexchao26
2020-11-29 16:05:41 -05:00
parent 045d73b069
commit f1e7900b8b
53 changed files with 1294 additions and 4 deletions
+30
View File
@@ -0,0 +1,30 @@
package main
import (
"flag"
"fmt"
"github.com/alexchao26/advent-of-code-go/util"
)
func main() {
var part int
flag.IntVar(&part, "part", 1, "part 1 or 2")
fmt.Println("Running part", part)
if part == 1 {
ans := part1(util.ReadFile("./input.txt"))
fmt.Println("Output:", ans)
} else {
ans := part2(util.ReadFile("./input.txt"))
fmt.Println("Output:", ans)
}
}
func part1(input string) int {
return 0
}
func part2(input string) int {
return 0
}
+21
View File
@@ -0,0 +1,21 @@
package main
import (
"testing"
"github.com/alexchao26/advent-of-code-go/util"
)
func TestPart1(t *testing.T) {
// Examples
// Run actual problem input
// part1(util.ReadFile("input.txt"))
}
func TestPart2(t *testing.T) {
// Examples
// Run actual problem input
// part2(util.ReadFile("input.txt"))
}