build

package
v0.6.6 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package build provides functions to retrieve source control version information.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GitRevision

func GitRevision() string

GitRevision retrieves the revision of the current build. If the build contains uncommitted changes the revision will be suffixed with "-dirty". This is written based on https://go.dev/ref/mod#pseudo-versions.

func Version

func Version(raw string) string

Version formats the raw version string into a pseudo-version string.

Types

This section is empty.

Jump to

Keyboard shortcuts

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