Compatibility for go 1.0