Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
sundowndev
GitHub Repository: sundowndev/phoneinfoga
Path: blob/master/build/build.go
988 views
1
package build
2
3
import (
4
"fmt"
5
"os"
6
)
7
8
// Version is the corresponding release tag
9
var Version = "dev"
10
11
// Commit is the corresponding Git commit
12
var Commit = "dev"
13
14
func IsRelease() bool {
15
return String() != "dev-dev"
16
}
17
18
func String() string {
19
return fmt.Sprintf("%s-%s", Version, Commit)
20
}
21
22
func IsDemo() bool {
23
return os.Getenv("PHONEINFOGA_DEMO") == "true"
24
}
25
26