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() })