version

package
v0.0.29 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ServiceName  = unspecified
	CommitTag    = unspecified
	CommitSHA    = unspecified
	CommitBranch = unspecified
	OriginURL    = unspecified
	BuildDate    = unspecified
)

This variables supposed to be bound during compilation using -ldflags

Functions

This section is empty.

Types

type Version

type Version struct {
	Service string
	Tag     string
	Commit  string
	Branch  string
	URL     string
	Date    time.Time
	// contains filtered or unexported fields
}

Version represent git version structure

func NewVersion

func NewVersion() (ver *Version, err error)

NewVersion create new girt Version instance

func (Version) GetName

func (v Version) GetName() string

GetName return service name

func (Version) IfSpecified

func (v Version) IfSpecified() bool

IfSpecified check if version specified

func (Version) String

func (v Version) String() string

String return version message

Jump to

Keyboard shortcuts

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