version

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2019 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

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