Browse Source

Added version generated by this

luis 7 years ago
parent
commit
a60b60e5df
2 changed files with 23 additions and 3 deletions
  1. 17 3
      README.md
  2. 6 0
      version.go

+ 17 - 3
README.md

@@ -2,12 +2,26 @@ Simple version generation tool
 ================================
 
 
-Usage:
+#### Usage:
 ```bash
 go get dev.hexasoftware.com/hxs/genversion
 # generate a file containing Version variable fetched from git tags
 genversion -package main -out version.go
 ```
 
-Requires:   
-	*	git
+#### Sample output:
+genversion -package main -out version.go    
+file version.go
+```go
+package main
+
+const (
+  //Version contains version of the package
+  Version = "0.1 - built: 2017-07-10 16:14:22 UTC"
+)
+```
+
+
+
+#### Requires:   
+*	git

+ 6 - 0
version.go

@@ -0,0 +1,6 @@
+package main
+
+const (
+  //Version contains version of the package
+  Version = "0.1 - built: 2017-07-10 16:14:22 UTC"
+)