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:
parent
a3019e1e0a
commit
0a10386457
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user