version

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithVersionInfo

func WithVersionInfo(ctx context.Context, ver *VersionInfo) context.Context

Types

type VersionInfo

type VersionInfo struct {
	PackageVersion   string
	PackageCommit    string
	PackageTimestamp string
}

func NewVersionInfo

func NewVersionInfo(pkgVersion, pkgCommit, pkgTimestamp string) *VersionInfo

func VersionInfoFromContext

func VersionInfoFromContext(ctx context.Context) (*VersionInfo, bool)

Jump to

Keyboard shortcuts

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