mirror of
https://github.com/mickael-kerjean/filestash.git
synced 2026-10-19 16:14:39 +00:00
21 lines
276 B
Go
21 lines
276 B
Go
package env
|
|
|
|
func IsWhiteLabel() bool {
|
|
return APPNAME != "Filestash"
|
|
}
|
|
|
|
func WhiteLabelText(a, b string) string {
|
|
if IsWhiteLabel() {
|
|
return b
|
|
}
|
|
return a
|
|
}
|
|
|
|
func PROGRAM_LICENSE(license string) {
|
|
LICENSE = license
|
|
}
|
|
|
|
func PROGRAM_NAME(name string) {
|
|
APPNAME = name
|
|
}
|