Documentation
¶
Overview ¶
Package version provides version information for gocroissant.
This package contains build-time version information including version number, build time, and Git commit hash. The version information is typically set during the build process using Go build flags.
Usage ¶
fmt.Printf("Version: %s\n", version.Version)
stamp := version.RetrieveStamp()
fmt.Printf(" Built with %s on %s\n", stamp.InfoGoCompiler, stamp.InfoBuildTime)
The GetBuildInfo function provides detailed build information including version, build time, Git commit, and Go version used for compilation.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // AppName is the name of the application. AppName = "gocroissant" // Version is the service version. Version = "dev" )
These variables should be set at compile time.
nolint:gochecknoglobals
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.