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