alvaroloes / enumer

A Go tool to auto generate methods for your enums
Other
480 stars 111 forks source link

could not import sync #44

Closed kochurovro closed 5 years ago

kochurovro commented 5 years ago

Hi everyone. Can u help me with my problem? enumer: checking package: report.go:4:2: could not import sync (type-checking package "sync" failed (/usr/local/go/src/sync/pool.go:9:2: could not import runtime (type-checking package "runtime" failed (/usr/local/go/src/runtime/mem_linux.go:21:6: sysAlloc redeclared in this block))))

alvaroloes commented 5 years ago

Hi

Could you please tell me which version of Go you were using Enumer with? Were you using go modules?

alvaroloes commented 5 years ago

@kochurovro This was probably caused because Enumer was incompatible with go modules. It is compatible now. Please install the latest version by doing:

go get -u github.com/alvaroloes/enumer

You should not see that issue now.

Closing this. Reopen if it keeps showing