Make compatible with go version 1