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.48.0-rc.1
Published
Aug 21, 2022
Platform
js/wasm
Imports
4 packages
Last checked
7 seconds ago

Tools for package owners.