Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadModuleVersion ¶ added in v0.5.0
ReadModuleVersion reads the build information of the running executable and evaluates the cqlc package version.
Types ¶
type BuildInfo ¶
type BuildInfo struct { // Version is the version of the binary Version string `json:"version"` // Commit is the git commit hash Commit string `json:"commit"` // Time is the build date Time time.Time `json:"time"` // GoVersion is the version of the Go toolchain that built the binary GoVersion string `json:"go.version"` }
BuildInfo contains information about the build
func ParseBuildInfo ¶
ParseBuildInfo parses the build information from the flags and the debug build information
Click to show internal directories.
Click to hide internal directories.