Make compatible with go version 1. Also formatted with gofmt

Tested with a simple ldap client.  Will send pull request for ldap package in a few minutes that makes it compatible with go v1