adventofcode/2018/day01-1.go

19 lines
360 B
Go
Raw Permalink Normal View History

package main
import (
"fmt"
"os"
"internal/day01"
)
// Provide a filename as input, get the result on stdout
func main() {
x := 0
seen := day01.Set{} // we don't use this until day01-2, just added here for backwards compatibility
x, _ = day01.ScanFrequencies(os.Args[1], &seen, x)
fmt.Println("Frequency list scanned, calibration complete: ", x)
}