diff options
| author | Jeff Carr <[email protected]> | 2025-02-19 17:21:26 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-02-19 17:39:45 -0600 |
| commit | d667d8c26a677ec993758fe1bccf5f644b184257 (patch) | |
| tree | 88c8ba4a58181bc0e04911df0da2f0223937caf3 /doGui.go | |
| parent | 3a42f0f9a5dbd14ab5b1a6ff0780dbac82407765 (diff) | |
attempt a table string funcv0.0.30
Diffstat (limited to 'doGui.go')
| -rw-r--r-- | doGui.go | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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() }) |
