all are returning AnyCol
This commit is contained in:
parent
29f2084e25
commit
ae2cbf1886
19
doTag.go
19
doTag.go
|
@ -86,19 +86,26 @@ func makeTagTablePB(pb *gitpb.GitTags) *gitpb.GitTagsTable {
|
||||||
col.Width = 16
|
col.Width = 16
|
||||||
// col.Width = -1
|
// col.Width = -1
|
||||||
|
|
||||||
cola := t.AddTimeFunc("age", func(repo *gitpb.GitTag) time.Time {
|
col = t.AddTimeFunc("age", func(repo *gitpb.GitTag) time.Time {
|
||||||
// todo
|
// todo
|
||||||
return time.Now()
|
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
|
// todo
|
||||||
return tag.Creatordate.AsTime()
|
return tag.Creatordate.AsTime()
|
||||||
})
|
})
|
||||||
cola.Width = 16
|
col.Width = 16
|
||||||
tmp := t.AddSubject()
|
|
||||||
tmp.Width = -1
|
col = t.AddIntFunc("int", func(tag *gitpb.GitTag) int {
|
||||||
|
// todo
|
||||||
|
return 3
|
||||||
|
})
|
||||||
|
col.Width = 4
|
||||||
|
|
||||||
|
col = t.AddSubject()
|
||||||
|
col.Width = 16
|
||||||
|
|
||||||
return t
|
return t
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue