summaryrefslogtreecommitdiff
path: root/doTag.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-09-16 23:13:00 -0500
committerJeff Carr <[email protected]>2025-09-16 23:13:00 -0500
commitae2cbf1886cb6bd71647c7d6ce1ed55f016c5618 (patch)
tree1840c2d4f489f6ef9696cef2d8d1b1d445d5b1e3 /doTag.go
parent29f2084e256f62a5ff6a3b49f2b08f31a69be931 (diff)
all are returning AnyCol
Diffstat (limited to 'doTag.go')
-rw-r--r--doTag.go19
1 files changed, 13 insertions, 6 deletions
diff --git a/doTag.go b/doTag.go
index 2f1e958..8d0692a 100644
--- a/doTag.go
+++ b/doTag.go
@@ -86,19 +86,26 @@ func makeTagTablePB(pb *gitpb.GitTags) *gitpb.GitTagsTable {
col.Width = 16
// col.Width = -1
- cola := t.AddTimeFunc("age", func(repo *gitpb.GitTag) time.Time {
+ col = t.AddTimeFunc("age", func(repo *gitpb.GitTag) time.Time {
// todo
return time.Now()
})
- cola.Width = 6
+ col.Width = 6
- cola = t.AddTimeFunc("ctime", func(tag *gitpb.GitTag) time.Time {
+ col = t.AddTimeFunc("ctime", func(tag *gitpb.GitTag) time.Time {
// todo
return tag.Creatordate.AsTime()
})
- cola.Width = 16
- tmp := t.AddSubject()
- tmp.Width = -1
+ col.Width = 16
+
+ col = t.AddIntFunc("int", func(tag *gitpb.GitTag) int {
+ // todo
+ return 3
+ })
+ col.Width = 4
+
+ col = t.AddSubject()
+ col.Width = 16
return t
}