Chore/update golang to 1.24 + add riscv64 support (#40)
* chg: chore: bump golang and deps * chg: chore: add riscv64 support * chg: chore: update goreleaser * chg: chore: disable cgo * chg: chore: tidy up deps * chg: chore: add build tags
This commit is contained in:
14
consts/version.go
Normal file
14
consts/version.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package consts
|
||||
|
||||
// These will be injected via -ldflags at build time
|
||||
var (
|
||||
gitSha string = "unknown"
|
||||
gitTag string = "unknown"
|
||||
)
|
||||
|
||||
func GetBuildInfo() map[string]string {
|
||||
return map[string]string{
|
||||
"revision": gitSha,
|
||||
"version": gitTag,
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user