Replaced "error" with "res_err"

"error" is a reserved keyword in Go, as it is a built-in type. Using "error" as a variable, although possible (and "correct", as far as the compiler is concerned), is ill-advised.