Help us shape the future of Go! Take the 2026 Go Developer Survey

version

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2026 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Overview

Package version 提供应用版本号,编译时通过 -ldflags 注入。

Index

Constants

This section is empty.

Variables

View Source
var Version = "dev"

Version 由 Makefile 通过 -ldflags "-X github.com/sigpanic/goink/internal/version.Version=xxx" 注入。 未注入时默认为 "dev"。

Functions

func BuildHash added in v1.6.1

func BuildHash() string

BuildHash 返回构建时的短 Git 提交号;源码有未提交改动时附加 -dirty。 构建信息缺失时返回空字符串。

Types

This section is empty.

Jump to

Keyboard shortcuts

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