-
Notifications
You must be signed in to change notification settings - Fork 0
/
version.go
26 lines (22 loc) · 945 Bytes
/
version.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// Copyright © 2016 Pennock Tech, LLC.
// All rights reserved, except as granted under license.
// Licensed per file LICENSE.txt
package tabular // import "go.pennock.tech/tabular"
// We are a library, not a top-level binary, so we can't depend upon any
// particular top-level linker action specifying versions. That said, we
// can provide hooks for applications to cooperate, if they so choose.
//
// *Clients* please consider invoking the `.version` shell-script inside
// this repo and passing it to the Go linker.
// See github.com/philpennock/character for an example.
var LinkerSpecifiedVersion string
const packageVersionName = "tabular"
const APIVersion string = "1.0"
func Versions() []string {
vl := make([]string, 0, 2)
if LinkerSpecifiedVersion != "" {
vl = append(vl, packageVersionName+": build-time specified: "+LinkerSpecifiedVersion)
}
vl = append(vl, packageVersionName+": API version: "+APIVersion)
return vl
}