mgen

command module
v0.0.0-...-4adbab0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 6, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

README

mgen

When you want to know the version of a module you depend on at runtime, mgen will generate a trivial package (see example here) from the go.mod file in your project.

Integrate mgen into your build with a make rule like this:

internal/vers/vers.go: go.mod
	mkdir -p $$(dirname $@)
	go run . --package=vers go.mod > $@

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL