The check
/handle
keywords introduced to improve code style is a good effort, though doesn't help very much on the looking of golang source code.
Before it, we see a lot of lines leading by if err != nil
, after that we'll see a lot of lines leading by check
.
How about we try another style, to put keyword AFTER a function call, just like below:
func CopyFile(src, dist string) error {
on checked err {