The error handling at LoadX509KeyPair() is still incorrect, it may now throw a Panic instead of reporting the error.
Main reason is a slight scoping issue. If I read http://golang.org/doc/effective_go.html#redeclaration correctly, then
is not the same as
because in the latter case a reassignment happens, while in the former case another, second err variable is declared. Therefore, in the first case the error check after the if may incorrectly report successful execution.