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.57.0-alpha.0
Published
Jun 6, 2023
Platform
js/wasm
Imports
4 packages
Last checked
44 seconds ago

Tools for package owners.