3 ms·
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, ds
by Alexendoo 7y 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