gui: strip extra quote marks from string cells

This commit is contained in:
mappu 2024-06-15 12:14:54 +12:00
parent 5e0422e10f
commit 5d268d22af
1 changed files with 8 additions and 3 deletions

View File

@ -14,9 +14,14 @@ func formatUtf8(in []byte) string {
} }
func formatAny(in interface{}) string { func formatAny(in interface{}) string {
if _, ok := in.([]byte); ok { switch in := in.(type) {
case []byte:
return "<<binary>>" return "<<binary>>"
}
return fmt.Sprintf("%#v", in) case string:
return in
default:
return fmt.Sprintf("%#v", in)
}
} }