gover

command module
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2016 License: MIT Imports: 10 Imported by: 0

README

gover - a version detector for Go packages

Build Status Coverage Status Go Report Card

A simple tool that outputs the value of the constant (or variable) Version defined in a given Go package.

Installation

$ go get github.com/bcandrea/gover

Usage

Example:

$ go get github.com/hashicorp/consul
$ gover github.com/hashicorp/consul
0.5.2

If supplied with a relative path (i.e. starting with "."), gover will treat the argument as a directory location and not a Go package name.

This is particularly useful during development, e.g. when the version number needs to be included in the compilation output:

$ go build -o my-tool_$(gover .)

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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