Documentation
¶
Index ¶
Constants ¶
View Source
const ProgramName = "tokengen"
Variables ¶
View Source
var Commit, Time, Modified = func() (string, string, string) {
if info, ok := debug.ReadBuildInfo(); ok {
var revision string
var time string
var modified string
for _, setting := range info.Settings {
if setting.Key == "vcs.revision" {
revision = setting.Value
}
if setting.Key == "vcs.time" {
time = setting.Value
}
if setting.Key == "vcs.modified" {
modified = setting.Value
}
}
return revision, time, modified
}
return "", "", ""
}()
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.