compatibility with Go 1