vcs

package
v0.7.8 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package vcs provides utilities for working with version control systems.

This package extracts version control information from Go binaries built with module support and version control integration.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Version

func Version() string

Version returns build info as "time-revision-int" or "time-revision-int-dirty". The integer is derived from the first 4 bytes of the git revision hash.

func VersionInt32 added in v0.7.7

func VersionInt32() (int32, error)

VersionInt32 returns the git revision as int32 for use as SQLite user_version. The integer is derived from the first 8 hex chars of the vcs.revision hash.

Types

This section is empty.

Jump to

Keyboard shortcuts

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