22 lines
246 B
Go
22 lines
246 B
Go
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
|
|
}
|