プロジェクト
GitHubで見る versioninfo
earthboundkid/versioninfo
earthboundkid/versioninfo has 297 GitHub stars and 7 forks. GitHot measured 0 stars in 24 hours and 0 in 7 days. Last checked 2026-11-20 06:53 UTC. Last push 2024-11-11.
計測したスター増加
- 24時間
- 0
- 7日間
- 0
- 15日間
- 履歴を収集中
- 1か月
- 履歴を収集中
期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。
概要
Importable package that parses version info from debug.ReadBuildInfo().
開発ツールREADME.md
オリジナルversioninfo

Importable package that parses debug.ReadBuildInfo() for inclusion in your Go application. Requires Go 1.18+.
Examples
package main
import (
"fmt"
"github.com/earthboundkid/versioninfo/v2"
)
func main() {
fmt.Println("Version:", versioninfo.Version)
fmt.Println("Revision:", versioninfo.Revision)
fmt.Println("DirtyBuild:", versioninfo.DirtyBuild)
fmt.Println("LastCommit:", versioninfo.LastCommit)
}
You may use the concatenated information provided by versioninfo.Short():
package main
import (
"fmt"
"github.com/earthboundkid/versioninfo/v2"
)
func main() {
fmt.Println("ShortInfo:", versioninfo.Short())
}
Add the -v and -version flags:
package main
import (
"flag"
"fmt"
"github.com/earthboundkid/versioninfo/v2"
)
func main() {
versioninfo.AddFlag(nil)
flag.Parse()
fmt.Println("done")
}