Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Version string GitCommit string Label string )
Variables sent at link time via ldflags
Functions ¶
Types ¶
type BuildInfoFetcher ¶
BuildInfoFetcher specifies a custom build info fetcher, only really exists for testing
type Config ¶
type Config struct {
ReadBuildInfo BuildInfoFetcher
}
type Option ¶
func WithFetcher ¶
func WithFetcher(fetcher BuildInfoFetcher) Option
WithFetcher allows setting a custom fetcher for build info
Click to show internal directories.
Click to hide internal directories.