This commit is contained in:
Lukas Wurzinger 2024-12-17 17:32:04 +01:00
parent dc04fe694e
commit 83a6098724
No known key found for this signature in database
2 changed files with 8 additions and 5 deletions

View file

@ -1,8 +1,6 @@
{
languages.go.enable = true;
# TODO test
pre-commit.hooks = {
# Go
gotest.enable = true;

View file

@ -57,13 +57,18 @@ func (b Binfo) Summarize(name string, version string, mode SummaryMode) string {
sb := new(strings.Builder)
err := t.Execute(sb, params{
Name: name,
Version: version,
Module: wants(Module),
Build: wants(Build),
CGO: wants(CGO),
VCS: wants(VCS),
Brk: brk,
Sep: sep,
I: b,
Brk: brk,
Sep: sep,
I: b,
})
if err != nil {
return ""