buildinfo/buildInfo.go

32 lines
486 B
Go
Raw Normal View History

2022-08-29 02:33:53 +02:00
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,
}
}