build

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2025 License: BSD-3-Clause Imports: 2 Imported by: 4

Documentation

Overview

Package build extracts version information from current binary.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildId

func BuildId(version string) string

BuildId tries to extract the first 7 digits of the git commit checksum from the version string. If it cannot do this, it just returns the version string. If version string ends with "+dirty" then the return value will also end with "+dirty"

func MainVersion

func MainVersion() (version string, ok bool)

MainVersion returns the module version of the binary's main package

Types

This section is empty.

Jump to

Keyboard shortcuts

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