buildinfo/buildInfo.go
Timon Ringwald c2cf5fd5c9 templating
2022-08-29 02:33:53 +02:00

32 lines
486 B
Go

package buildinfo
type buildInfo struct {
Name string
Version string
Commit string
BuildTime string
OS string
Arch string
ShowDeps bool
Deps []Dep
}
type Dep struct {
Name string
Version string
Sum string
}
func newBuildInfo() *buildInfo {
return &buildInfo{
Name: Name,
Version: Version,
Commit: Commit,
BuildTime: BuildTime,
OS: OS,
Arch: Arch,
Deps: dependencies,
ShowDeps: ShowDeps,
}
}