Project restructure (#18)
* First pass at restructuring the project; untested but it does compile * Restructure builds and runs 🎉 * Add the dist folder to the gitignore * Update core/playlist/monitor.go * golint and reorganize the monitor.go file Co-authored-by: Gabe Kangas <gabek@real-ity.com>
This commit is contained in:
20
core/constants.go
Normal file
20
core/constants.go
Normal file
@@ -0,0 +1,20 @@
|
||||
package core
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
)
|
||||
|
||||
// the following are injected at build-time
|
||||
var (
|
||||
//GitCommit is the commit which this version of owncast is running
|
||||
GitCommit = "unknown"
|
||||
//BuildVersion is the version
|
||||
BuildVersion = "0.0.0"
|
||||
//BuildType is the type of build
|
||||
BuildType = "localdev"
|
||||
)
|
||||
|
||||
//GetVersion gets the version string
|
||||
func GetVersion() string {
|
||||
return fmt.Sprintf("Owncast v%s-%s (%s)", BuildVersion, BuildType, GitCommit)
|
||||
}
|
||||
Reference in New Issue
Block a user