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.46.2
Published
Jul 7, 2022
Platform
js/wasm
Imports
4 packages
Last checked
1 hour ago

Tools for package owners.