version

package
v0.1.0-alpha.7 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2026 License: MulanPSL-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package version 提供单一版本号来源,与 Go modules 的 tag(如 v0.1.0-alpha.2)语义对齐。

发布构建请使用 scripts/build-release.sh / .bat 中的 -ldflags -X 注入,或手动:

go build -ldflags "-X gitcode.com/sangachy/pulse/internal/version.Version=v0.1.0" -o pulse ./cmd/pulse

Index

Constants

This section is empty.

Variables

View Source
var Version string

Version 为当前发布版本(须带 v 前缀,符合 semver 与 go tag 惯例)。 发布构建请用 -ldflags "-X gitcode.com/sangachy/pulse/internal/version.Version=..." 覆盖; 未注入时 init 回落为 v0.1.0-alpha.5,保证本地 go build 与测试一致。

Functions

This section is empty.

Types

This section is empty.

Source Files

  • version.go

Jump to

Keyboard shortcuts

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