gui: strip extra quote marks from string cells
This commit is contained in:
parent
5e0422e10f
commit
5d268d22af
@ -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>>"
|
||||||
}
|
|
||||||
|
|
||||||
|
case string:
|
||||||
|
return in
|
||||||
|
|
||||||
|
default:
|
||||||
return fmt.Sprintf("%#v", in)
|
return fmt.Sprintf("%#v", in)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user