Commit d403aa7 1 parent a71d662 commit d403aa7 Copy full SHA for d403aa7
File tree 1 file changed +6
-5
lines changed
1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 1
1
[ ![ License] ( https://img.shields.io/badge/license-MIT-blue.svg )] ( https://opensource.org/licenses/MIT )
2
2
[ ![ 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 )
5
5
6
6
7
7
# Package version gets version information from git
8
8
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)
10
10
11
11
``` go
12
12
package main
13
13
14
- import " bitbucket.org /gotamer/version"
14
+ import " github.com /gotamer/version"
15
15
16
16
func init () {
17
17
if err := version.Run (); err != nil {
@@ -21,6 +21,7 @@ func init() {
21
21
```
22
22
23
23
### cat version_info.go
24
+
24
25
``` go
25
26
package main
26
27
@@ -39,4 +40,4 @@ const VerGit = "g1051a2c"
39
40
// VarTag is the Tag version from Git.
40
41
const VerTag = " 0.2"
41
42
42
- ```
43
+ ```
You can’t perform that action at this time.
0 commit comments