Skip to content

Latest commit

 

History

History
29 lines (18 loc) · 1.09 KB

README.md

File metadata and controls

29 lines (18 loc) · 1.09 KB

go-http-metrics-imports

This repository shows how go-http-metrics doesn't import all the compatible frameworks when is used.

How

go-http-metrics library uses independent packages for each of the compatible frameworks. This way, importing the library doesn't mean importing all the supported libraries, just the ones that you want and imported explicitly.

Examples

In this package you have 3 go apps.

Check go.mod files to see the explicit imports.

Now Lets use go list -json so Go tell us what are the subimports on each of the apps so we can see the imported libraries by go-http-metrics.

As it can be seen in Deps field, the imports of std, gin and echo are different and match with the dependencies of the framework that they are using.