summaryrefslogtreecommitdiff
path: root/tablePB.go
diff options
context:
space:
mode:
Diffstat (limited to 'tablePB.go')
-rw-r--r--tablePB.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/tablePB.go b/tablePB.go
index 8bd5cc2..99102c1 100644
--- a/tablePB.go
+++ b/tablePB.go
@@ -7,7 +7,6 @@ import (
"os"
"time"
- "go.wit.com/lib/gui/shell"
"go.wit.com/lib/protobuf/guipb"
"go.wit.com/log"
"google.golang.org/protobuf/types/known/anypb"
@@ -106,7 +105,7 @@ func getAnyCell(col *guipb.AnyCol, row int) (string, bool) {
// It's a timestamp, now convert it back to a Go time.Time
goTime := tsProto.AsTime()
// fmt.Printf("Successfully unpacked timestamp: %v\n", goTime)
- sout = shell.FormatDuration(time.Since(goTime))
+ sout = FormatDuration(time.Since(goTime))
return sout, true
}
return "", false
@@ -114,6 +113,6 @@ func getAnyCell(col *guipb.AnyCol, row int) (string, bool) {
log.Info("cell unhandled type", col.Attr.Type)
}
// cellTime := r.Vals[row]
- // s := shell.FormatDuration(time.Since(cellTime.AsTime()))
+ // s := FormatDuration(time.Since(cellTime.AsTime()))
return "fixme", true
}