DEV Community

loading...
Cover image for Import Cycles in Golang: How To Deal With Them

Import Cycles in Golang: How To Deal With Them

#go
Jogendra Kumar
I am an iOS / Backend Engineer and an active Open Source contributor. I build things mostly with Go and Swift. I love tech and aviation equally. I aspire to become an Airline Pilot someday.
・1 min read

As a Golang developer, you probably have encountered import cycles. Golang does not allow import cycles. Go throws a compile-time error if it detects the import cycle in code. In this post, let’s understand how the import cycle occurs and how you can deal with them.

Read the full blog here:
https://jogendra.dev/import-cycles-in-golang-and-how-to-deal-with-them

Discussion (0)