Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

For 3., For use in defer the error return does have to be declared as you'd expect, in the examples it's done in the function signature

  func CopyFile(src, dst string) (err error) {
                                  ^^^
                                  here


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: