info

package
v0.9.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 21, 2026 License: MIT Imports: 3 Imported by: 3 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ApplicationName    string
	ApplicationVersion string

	ProductName    string
	ProductModel   string
	ProductVersion string

	ProjectRoot string
	ProjectName string
	ProjectPath string

	GitBranch string
	GitTag    string
	GitCommit string

	BuildVersion string
	BuildType    string
	BuildDate    string
	BuildTime    string

	INJECTION = map[string]*string{
		"ApplicationName":    &ApplicationName,
		"ApplicationVersion": &ApplicationVersion,

		"ProductName":    &ProductName,
		"ProductModel":   &ProductModel,
		"ProductVersion": &ProductVersion,

		"ProjectRoot": &ProjectRoot,
		"ProjectName": &ProjectName,
		"ProjectPath": &ProjectPath,

		"GitBranch": &GitBranch,
		"GitTag":    &GitTag,
		"GitCommit": &GitCommit,

		"BuildVersion": &BuildVersion,
		"BuildType":    &BuildType,
		"BuildDate":    &BuildDate,
		"BuildTime":    &BuildTime,
	}
)

Functions

func Version

func Version() string

Types

type Build added in v0.0.5

type Build struct {
	ApplicationName    string `json:"application_name"`
	ApplicationVersion string `json:"application_version"`

	ProductName    string `json:"product_name"`
	ProductModel   string `json:"product_model"`
	ProductVersion string `json:"product_version"`

	ProjectRoot string `json:"project_root"`
	ProjectName string `json:"project_name"`
	ProjectPath string `json:"project_path"`

	GitBranch string `json:"git_branch"`
	GitTag    string `json:"git_tag"`
	GitCommit string `json:"git_commit"`

	BuildVersion string `json:"build_version"`
	BuildType    string `json:"build_type"`
	BuildDate    string `json:"build_date"`
	BuildTime    string `json:"build_time"`
}

func GetBuildInfo added in v0.0.5

func GetBuildInfo() Build

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL