From f2978a0605bcf0989f54d75878266b371926d72f Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Tue, 16 Sep 2025 09:53:13 -0500 Subject: [PATCH] strings as 'any' now --- tablePB.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tablePB.go b/tablePB.go index 39907a3..f52a42d 100644 --- a/tablePB.go +++ b/tablePB.go @@ -144,6 +144,14 @@ func getAnyCell(t *guipb.Table, name string, row int) (string, bool) { switch col.Attr.Type { case guipb.ColAttr_STRING: // return col.Vals[row] true + // Assume 'anyVal' is an element from your r.Vals slice + var stringValue wrapperspb.StringValue + if err := anyVal.UnmarshalTo(&stringValue); err == nil { + // It's a string, now convert it back to a native Go string + goString := stringValue.GetValue() + // fmt.Printf("Successfully unpacked string: %s\n", goString) + return goString, true + } case guipb.ColAttr_INT: var finalInt int32 // 1. Check if the Any contains an Int32Value