Whose Error Is It?

Go printed this

import cycle not allowed
What it meansTwo or more packages import each other directly or through a chain, and Go forbids circular dependencies between packages.
The first thing to checkRead the import chain in the error output, then move the shared types into a separate package or use an interface to break the cycle.

More from Go

All 75 errors

Whose Error Is It? · Status Menu · Back to the bar