Y
Hacker News
new
|
ask
|
show
|
jobs
by
Alexendoo
2568 days ago
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