fix
This commit is contained in:
parent
cdf2c40c1e
commit
29bcdc1519
5
binfo.go
5
binfo.go
|
@ -152,10 +152,9 @@ const (
|
||||||
ModeCGO
|
ModeCGO
|
||||||
ModeVCS
|
ModeVCS
|
||||||
ModeMultiline
|
ModeMultiline
|
||||||
ModeNamed
|
|
||||||
)
|
)
|
||||||
|
|
||||||
func (b Binfo) Summarize(name string, mode SummaryMode) string {
|
func (b Binfo) Summarize(name string, version string, mode SummaryMode) string {
|
||||||
wants := func(test SummaryMode) bool {
|
wants := func(test SummaryMode) bool {
|
||||||
return mode&test == test
|
return mode&test == test
|
||||||
}
|
}
|
||||||
|
@ -215,6 +214,6 @@ func (b Binfo) Summarize(name string, mode SummaryMode) string {
|
||||||
if name == "" {
|
if name == "" {
|
||||||
return j
|
return j
|
||||||
} else {
|
} else {
|
||||||
return fmt.Sprintf("%s:%s%s", name, brk, j)
|
return fmt.Sprintf("%s %s:%s%s", name, version, brk, j)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue