暂无描述

luis a60b60e5df Added version generated by this 7 年之前
README.md a60b60e5df Added version generated by this 7 年之前
main.go 75eaf0920f Initial 7 年之前
version.go a60b60e5df Added version generated by this 7 年之前

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