nidus-sync/version/version.go
Eli Ribble d4cbfb960e
Some checks failed
/ golint (push) Failing after 12s
Move to setting version info explicitly in linker flags
We don't have go built-in VCS information in a nix build because the git
repository isn't present. After struggling to build an overlay that
would provide it, I decided this path is easier of just injecting in the
data that we need.

Issue: #5
2026-05-19 19:46:05 +00:00

11 lines
190 B
Go

package version
import (
"time"
)
type VersionInfo struct {
BuildTime time.Time `json:"build_time"`
IsModified bool `json:"is_modified"`
Revision string `json:"revision"`
}