Hi, i’m working on a package(https://github.com/GrigoriyMikhalkin/sqlboiler-paginate) which supposed to have several versions. Versions code located in
vN subpackages and pretty much identical, except for one dependency, which should have different versions. So there’s common code which i keep at package’s root.
My question is, what is best way to reuse code between different versions? Looks like, if common code is located somewhere else in root module, then root module will be considered as dependency and will be present in
go.mod . Is there way to avoid that, or should i just replicate code for each version?