Far better to use something more explicit and controllable:
f, err := os.Open(filename) onerr return 0, err
f, err := os.Open(filename) if err != nil { return 0, err }
err := DoSomething() onerr { fmt.PrintF("We got error %v\n", err) return 0, err }
Far better to use something more explicit and controllable:
which is just syntactic sugar for: also: