Help us shape the future of Go! Take the 2026 Go Developer Survey

version

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: Apache-2.0 Imports: 3 Imported by: 9

Documentation

Overview

Reference: https://semver.org; NOT strictly followed.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompareVersions

func CompareVersions(v1, v2 *Semver) (int, error)

func SetVersion

func SetVersion(v string)

func Version

func Version() string

Types

type Semver

type Semver struct {
	// contains filtered or unexported fields
}

func GetVersion

func GetVersion() Semver

func Parse

func Parse(vs string) *Semver

Jump to

Keyboard shortcuts

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