Skip to Content
marmot
DiagnosticsError codes

Go does not allow import cycles. Move the shared code into a third package that both import.

The mistake and the fix

The mistake
// package a imports b, package b imports a
Fixed
// move what both need into package c; a and b import c

See also all error codes and marmot explain.

On this page

Was this page helpful?

Report an issueOpen issues