Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose used dependencies and versions #91

Open
ThomasObenaus opened this issue Sep 19, 2019 · 1 comment
Open

Expose used dependencies and versions #91

ThomasObenaus opened this issue Sep 19, 2019 · 1 comment
Labels
enhancement New feature or request

Comments

@ThomasObenaus
Copy link
Owner

https://github.com/povilasv/prommod

@ThomasObenaus ThomasObenaus added the enhancement New feature or request label Sep 19, 2019
@ThomasObenaus
Copy link
Owner Author

prommod works only when using go modules.
It uses internally the function ReadBuildInfo from package debug


// ReadBuildInfo returns the build information embedded
// in the running binary. The information is available only
// in binaries built with module support.
func ReadBuildInfo() (info *BuildInfo, ok bool) {
	return readBuildInfo(modinfo())
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant