package version

import "github.com/ClickHouse/ch-go/internal/version"

Package version resolves current module version.

Index

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.

Source Files

version.go

Version
v0.45.0
Published
Jun 27, 2022
Platform
darwin/amd64
Imports
4 packages
Last checked
17 seconds ago

Tools for package owners.