Documentation
¶
Overview ¶
Package meta handles the metadata generated through the go builder using ldflags.
Example (Digits) ¶
fmt.Println(digits("v1.0 (init release)"))
Output: 1.0
Index ¶
Examples ¶
Constants ¶
View Source
const ( // Alpha Greek character. Alpha = "α" // Beta Greek character. Beta = "β" // GoBuild version when no ldflags are in use. GoBuild = "0.0.0" // Placeholder string when no ldflags are in use. Placeholder = "unset" // Bin is the binary filename of this program. Bin = "retrotxt" // Dir is the sub-directory name used for configuration and temporary paths. Dir = "retrotxt" // Name of this program. Name = "RetroTxtGo" // URL for this program's website. URL = "https://retrotxt.com/go" // WebPort is the internal server HTTP port. WebPort uint = 8086 )
Variables ¶
View Source
var App = Release{} //nolint:gochecknoglobals
App contains the version release and build metadata.
Functions ¶
Types ¶
type Release ¶
type Release struct { // Version of this program. Version string // GitHub commit checksum. Commit string // Date in the RFC3339 format. Date string // Built by name (goreleaser). BuiltBy string }
Release metadata.
Click to show internal directories.
Click to hide internal directories.