v1.1.1: update docs, template conditionals

This commit is contained in:
AJ ONeal 2019-06-21 00:18:07 -06:00
parent 639a7e246f
commit 0b8c2d86df
1 changed files with 3 additions and 3 deletions

View File

@ -209,9 +209,9 @@ package {{ .Package }}
func init() {
GitRev = "{{ .GitRev }}"
if "" != "{{ .Version }}" {
GitVersion = "{{ .Version }}"
}
{{- if .Version }}
GitVersion = "{{ .Version }}"
{{ end -}}
GitTimestamp = "{{ .Timestamp }}"
}
`))