Allow compiler to reassign the value of ProgramName

Can use ldflags in build line such as:

    -ldflags='-X main.ProgramName=${NAME}"'
This commit is contained in:
aerth
2017-04-04 14:08:08 -07:00
parent a3019e1e0a
commit 0a10386457

View File

@@ -11,7 +11,7 @@ import (
/*
ProgramName is the name of the program
*/
const ProgramName = "boltbrowser"
var ProgramName = "boltbrowser"
var databaseFile string
var db *bolt.DB