Bez popisu

luis a60b60e5df Added version generated by this před 7 roky
README.md a60b60e5df Added version generated by this před 7 roky
main.go 75eaf0920f Initial před 7 roky
version.go a60b60e5df Added version generated by this před 7 roky

README.md

Simple version generation tool

Usage:

go get dev.hexasoftware.com/hxs/genversion
# generate a file containing Version variable fetched from git tags
genversion -package main -out version.go

Sample output:

genversion -package main -out version.go
file version.go

package main

const (
  //Version contains version of the package
  Version = "0.1 - built: 2017-07-10 16:14:22 UTC"
)

Requires:

  • git