version

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2023 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

View Source
const PRE = "0xDEV"

Variables

This section is empty.

Functions

func IsDev

func IsDev(v string) bool

func Prerelease

func Prerelease(v string) string

Types

type Version

type Version string

func Current

func Current() Version

Current tryes to read version info from go module being built.

func Parse

func Parse(v string) (Version, error)

func (Version) Build added in v0.9.0

func (v Version) Build() string

func (Version) String

func (v Version) String() string

Jump to

Keyboard shortcuts

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