Documentation ¶
Overview ¶
Package meta provides common application metadata for use with go build and ldflags. This package is intended to be imported, where variable values can be set by using -X arguments, tp the -ldflags argument, when running go build. See https://pkg.go.dev/cmd/go and https://pkg.go.dev/cmd/link.
List of variable names:
jdk.sh/meta.author jdk.sh/meta.author_url jdk.sh/meta.copyright jdk.sh/meta.date jdk.sh/meta.desc jdk.sh/meta.dev jdk.sh/meta.docs jdk.sh/meta.license jdk.sh/meta.license_url jdk.sh/meta.name jdk.sh/meta.note jdk.sh/meta.sha jdk.sh/meta.src jdk.sh/meta.title jdk.sh/meta.url jdk.sh/meta.version
Index ¶
- func Arch() string
- func Author() string
- func AuthorEmail() string
- func AuthorURL() *u.URL
- func Copyright() string
- func Date() *time.Time
- func Description() string
- func Development() bool
- func Docs() *u.URL
- func Go() string
- func License() string
- func LicenseURL() *u.URL
- func Name() string
- func Note() string
- func OS() string
- func SHA() string
- func ShortSHA() string
- func Source() *u.URL
- func Title() string
- func URL() *u.URL
- func Version() string
- func VersionBuild() string
- func VersionMajor() string
- func VersionMinor() string
- func VersionPatch() string
- func VersionPreRelease() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthorEmail ¶
func AuthorEmail() string
AuthorEmail is the email address for the application author.
func Development ¶
func Development() bool
Development is the development status for the application.
func ShortSHA ¶
func ShortSHA() string
ShortSHA is the git "short" SHA used to build the application.
func VersionBuild ¶
func VersionBuild() string
VersionBuild is the semver build metadata version. See https://semver.org.
func VersionMajor ¶
func VersionMajor() string
VersionMajor is the semver major version. See https://semver.org.
func VersionMinor ¶
func VersionMinor() string
VersionMinor is the semver minor version. See https://semver.org.
func VersionPatch ¶
func VersionPatch() string
VersionPatch is the semver patch version. See https://semver.org.
func VersionPreRelease ¶
func VersionPreRelease() string
VersionPreRelease is the semver pre-release version. See https://semver.org.
Types ¶
This section is empty.