32 lines
486 B
Go
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,
|
||
|
}
|
||
|
}
|