Use import errors "golang.org/x/xerrors"
this way later you only have to replace it with `import "errors"` and `errors.Errorf` with `fmt.Errorf`. 2019. szeptember 6., péntek 16:50:10 UTC+2 időpontban changkun a következőt írta: > > I have upgraded my code to Go 1.13 with newly introduced errors APIs. > > However, I am not able to upgrade the production environment Go version > which is Go 1.11, which means I have to run Go 1.13 code on a Go 1.11 > environment. > > What are the way to make my builds both happy on local and production > environment with a single code base? > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/13b770a9-6cee-4e81-9915-305efa4f5e08%40googlegroups.com.