version

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	VersionStringFunc = getStringFromVersionTxt
)

VersionStringFunc is the function that feeds the version string into GetVersion

Functions

func GetStringFromFile

func GetStringFromFile(fileName string) (string, error)

GetStringFromFile returns the first line of the passed in file.

func GetVersion

func GetVersion() (*semver.Version, error)

GetVersion reads the version.txt and returns the version as a semver.Version.

func GetVersionFromString

func GetVersionFromString(versionString string) (*semver.Version, error)

GetVersionFromString takes the passed in string and attempts to make semver.Version out of it.

Types

This section is empty.

Jump to

Keyboard shortcuts

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