this is cool and all but the tables don't render properly

This commit is contained in:
2025-02-01 23:15:54 -05:00
parent b09cb83017
commit 3a7ed5973b
28 changed files with 1917 additions and 88 deletions

View File

@@ -0,0 +1,54 @@
package main
import (
`reflect`
)
// Row prints the formatted row for a tableAddr.
func (t *tableAddr) Row(sizer *tableAddrSizer, indent string, plain bool) (out string) {
var val reflect.Value
var sizerVal reflect.Value
if t == nil || sizer == nil {
return
}
val = reflect.ValueOf(*t)
sizerVal = reflect.ValueOf(*sizer)
out = rowRender(val, sizerVal, indent, plain)
return
}
// Row prints the formatted row for a tableLegacy4.
func (t *tableLegacy4) Row(sizer *tableLegacy4Sizer, indent string, plain bool) (out string) {
var val reflect.Value
var sizerVal reflect.Value
if t == nil || sizer == nil {
return
}
val = reflect.ValueOf(*t)
sizerVal = reflect.ValueOf(*sizer)
out = rowRender(val, sizerVal, indent, plain)
return
}
// Row prints the formatted row for a tableMask4.
func (t *tableMask4) Row(sizer *tableMask4Sizer, indent string, plain bool) (out string) {
var val reflect.Value
var sizerVal reflect.Value
if t == nil || sizer == nil {
return
}
val = reflect.ValueOf(*t)
sizerVal = reflect.ValueOf(*sizer)
out = rowRender(val, sizerVal, indent, plain)
return
}