Flamenco/internal/appinfo/appinfo.go
Sybren A. Stüvel 9f5e4cc0cc License: license all code under "GPL-3.0-or-later"
The add-on code was copy-pasted from other addons and used the GPL v2
license, whereas by accident the LICENSE text file had the GNU "Affero" GPL
license v3 (instead of regular GPL v3).

This is now all streamlined, and all code is licensed as "GPL v3 or later".

Furthermore, the code comments just show a SPDX License Identifier
instead of an entire license block.
2022-03-07 15:26:46 +01:00

22 lines
667 B
Go

package appinfo
// SPDX-License-Identifier: GPL-3.0-or-later
import "fmt"
// ApplicationName contains the application name.
const ApplicationName = "Flamenco 3"
// ApplicationVersion has the version number, and is set during the build.
var ApplicationVersion = "set-during-build"
// FormattedApplicationInfo returns the application name & version as single string.
func FormattedApplicationInfo() string {
return fmt.Sprintf("%s %s", ApplicationName, ApplicationVersion)
}
// UserAgent returns the application name & version suitable for the HTTP User-Agent header.
func UserAgent() string {
return fmt.Sprintf("%s/%s", ApplicationName, ApplicationVersion)
}