version

package
v0.0.0-...-bd62367 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package version resolves current module version.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Value

type Value struct {
	Major int
	Minor int
	Patch int
	Name  string
	Raw   string
}

Value describes client module version

func Extract

func Extract(info *debug.BuildInfo) Value

Extract version Value from BuildInfo.

func Get

func Get() Value

Get optimistically gets current module version.

Does not handle replace directives.

Jump to

Keyboard shortcuts

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