File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11[ ![ License] ( https://img.shields.io/badge/license-MIT-blue.svg )] ( https://opensource.org/licenses/MIT )
22[ ![ Go v1.9] ( https://img.shields.io/badge/Go-v1.9-green.svg )] ( http://golang.org )
3- [ ![ Go Report Card] ( https://goreportcard.com/badge/bitbucket.org/gotamer/version )] ( https://goreportcard.com/report/bitbucket.org /gotamer/version )
4- [ ![ GoDoc] ( https://godoc.org/bitbucket.org /gotamer/version?status.svg )] ( https://godoc.org/bitbucket.org /gotamer/version )
3+ [ ![ Go Report Card] ( https://goreportcard.com/badge/bitbucket.org/gotamer/version )] ( https://goreportcard.com/report/github.com /gotamer/version )
4+ [ ![ GoDoc] ( https://godoc.org/github.com /gotamer/version?status.svg )] ( https://godoc.org/github.com /gotamer/version )
55
66
77# Package version gets version information from git
88
9- It runs ` git describe --always --long --tags --dirty ` and formats that info in to a file called version .go
9+ It runs ` git describe --always --long --tags --dirty ` and formats that info in to a file called version_info .go (see output below)
1010
1111``` go
1212package main
1313
14- import " bitbucket.org /gotamer/version"
14+ import " github.com /gotamer/version"
1515
1616func init () {
1717 if err := version.Run (); err != nil {
@@ -21,6 +21,7 @@ func init() {
2121```
2222
2323### cat version_info.go
24+
2425``` go
2526package main
2627
@@ -39,4 +40,4 @@ const VerGit = "g1051a2c"
3940// VarTag is the Tag version from Git.
4041const VerTag = " 0.2"
4142
42- ```
43+ ```
You can’t perform that action at this time.
0 commit comments