summaryrefslogtreecommitdiff
path: root/doGui.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-02-19 17:21:26 -0600
committerJeff Carr <[email protected]>2025-02-19 17:39:45 -0600
commitd667d8c26a677ec993758fe1bccf5f644b184257 (patch)
tree88c8ba4a58181bc0e04911df0da2f0223937caf3 /doGui.go
parent3a42f0f9a5dbd14ab5b1a6ff0780dbac82407765 (diff)
attempt a table string funcv0.0.30
Diffstat (limited to 'doGui.go')
-rw-r--r--doGui.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/doGui.go b/doGui.go
index 3bc8d29..a004f2a 100644
--- a/doGui.go
+++ b/doGui.go
@@ -80,6 +80,9 @@ func drawWindow(win *gadgets.BasicWindow) {
grid.NewButton("me.machines.ShowTable()", func() {
t := me.machines.NewTable("test 2")
t.AddHostname()
+ t.AddStringFunc("sMB", func(m *zoopb.Machine) string {
+ return fmt.Sprintf("%d mb", m.Memory/(1024*1024))
+ })
t.ShowTable()
})