version

package
v1.0.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: May 13, 2026 License: Apache-2.0, Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package version provides the build version information for the Codefang binary.

Index

Constants

This section is empty.

Variables

View Source
var Binary = 0

Binary is Codefang's API version. It matches the package name.

View Source
var BinaryGitHash = "<unknown>"

BinaryGitHash is the Git hash of the Codefang binary file which is executing.

View Source
var Commit = "none"

Commit is the git commit hash, injected via ldflags at build time.

View Source
var Date = "unknown"

Date is the build date, injected via ldflags at build time.

View Source
var Version = "dev"

Version is the release version, injected via ldflags at build time.

Functions

func InitBinaryVersion

func InitBinaryVersion()

InitBinaryVersion extracts the API version from the package path and sets Binary.

Types

This section is empty.

Jump to

Keyboard shortcuts

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