Skip to content

Example to check the go-http-metrics imports using different frameworks

Notifications You must be signed in to change notification settings

slok/go-http-metrics-imports

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Example to check the go-http-metrics imports using different frameworks

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages