versioninfo

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetUserAgent

func GetUserAgent() string

func Init

func Init(ver, buildNum, time, arch string)

Types

type VersionInfo

type VersionInfo struct {
	Version string `json:"version"`
	Time    string `json:"build-time"`
	Arch    string `json:"arch"`
	Build   string `json:"build"`
}

func Get

func Get() *VersionInfo

func (VersionInfo) Output

func (v VersionInfo) Output()

func (VersionInfo) String

func (v VersionInfo) String() string

Jump to

Keyboard shortcuts

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