From e3046f7e431fc1c6ced4054517aa247298ab5f78 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sat, 11 Oct 2025 08:55:24 -0500 Subject: show age. thanks cobol library --- tablePackages.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tablePackages.go') diff --git a/tablePackages.go b/tablePackages.go index c4ec53c..d317331 100644 --- a/tablePackages.go +++ b/tablePackages.go @@ -3,6 +3,7 @@ package zoopb import ( + "go.wit.com/lib/cobol" "go.wit.com/log" ) @@ -38,6 +39,11 @@ func (pb *Packages) MakeDefaultTable() *PackagesTable { }) col.Width = 6 + col = t.AddStringFunc("age", func(p *Package) string { + return cobol.Since(p.Ctime) + }) + col.Width = 5 + col = t.AddArchitecture() col.Width = 8 -- cgit v1.2.3