package = main import ( "os" "log" ) func main() { f, err := os.Open("myapp.log") if err != nil { log.Fatal(err) } }
There are no exceptions in go