You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

27 lines
706 B

package util
// VersionInfo are the information which will be added at build time
// and shown in the frontend under the about tab
var VersionInfo Info
// Info holds the information which will be added at build time
type Info struct {
NodeJS string `json:"nodeJS"`
Commit string `json:"commit"`
Yarn string `json:"yarn"`
CompilationTime string `json:"compilationTime"`
}
var (
ldFlagNodeJS string
ldFlagCommit string
ldFlagYarn string
ldFlagCompilationTime string
)
func init() {
VersionInfo.NodeJS = ldFlagNodeJS
VersionInfo.Commit = ldFlagCommit
VersionInfo.Yarn = ldFlagYarn
VersionInfo.CompilationTime = ldFlagCompilationTime
}