version

package module
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

View Source
const PRE = "0xDEV"

Variables

View Source
var Error = errors.New("version")

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

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