Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ProjectName string // what's the project name Version string // This is the version of the app: 1.0.0 ServiceName string // this is the service name (it's optional) Stage string // Dev, Staging, PreRelease, Prod etc... BuildAt time.Time // WHen it has been built CompanyName string CompanyWebsite string BuiltBy string // By what user has been built // Git Details GitCommitId string // This is the latest commit id GitCommitDate time.Time // This is the latest commit date GitAuthorName string // This is the author of the latest commit )
Functions ¶
func Init ¶
func Init(version AppVersion)
Types ¶
type AppVersion ¶
type AppVersion struct { ProjectName string // what's the project name Version string // This is the version of the app: 1.0.0 ServiceName string // this is the service name (it's optional) Stage string // Dev, Staging, PreRelease, Prod etc... BuildAt time.Time // WHen it has been built CompanyName string CompanyWebsite string BuiltBy string // By what user has been built // Git Details GitCommitId string // This is the latest commit id GitCommitDate time.Time // This is the latest commit date GitAuthorName string // This is the author of the latest commit }
func GetAppVersion ¶
func GetAppVersion() AppVersion
Click to show internal directories.
Click to hide internal directories.