Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildDateFrom ¶
BuildDateFrom takes in context and return the associated build date. It returns nil if build data is not in context.
func SetBuildInfo ¶
func SetBuildInfo(version, date, fullCommit, tags, os, arch, goVersion string)
SetBuildInfo sets the global BuildInfo variable in the buildinfo package.
func WithBuildData ¶
WithBuildData puts build data into context.
Types ¶
type BuildData ¶
type BuildData struct {
Version, Date, FullCommit, Tags, Os, Arch, GoVersion string
}
BuildData is a struct that contains build information of arr.ai
var BuildInfo BuildData
BuildInfo represents arr.ai build information.
func BuildDataFrom ¶
BuildDataFrom takes in context and return the BuildData.
Click to show internal directories.
Click to hide internal directories.