adventofcode/2021/01/first.go

22 lines
246 B
Go
Raw Normal View History

2023-11-30 22:36:04 +01:00
package main
import (
"fmt"
"os"
)
func checkErr(e error) {
if e!=nil{
panic(e)
}
}
func main(){
numbers := getNumbers("numbers")
}
func getNumbers(filename string)[]byte{
dat, err := os.ReadFile(filename)
checkErr(err)
return dat
}