It was repeated in cost.Backend and terracost.Backend so it's now abstracted to it's own package and used instead of redeclared.
Also did some minor fixes but the main one would be the //go:generate functions that where using go run {pkg} instead of the binary alone, which was not working and it's not how it's suppose to be used either. Also did the same no the Makefile removing all the go run and just used the binary of the lib.
It was repeated in
cost.Backend
andterracost.Backend
so it's now abstracted to it's own package and used instead of redeclared.Also did some minor fixes but the main one would be the
//go:generate
functions that where usinggo run {pkg}
instead of the binary alone, which was not working and it's not how it's suppose to be used either. Also did the same no the Makefile removing all thego run
and just used the binary of the lib.