gui: strip extra quote marks from string cells
This commit is contained in:
parent
5e0422e10f
commit
5d268d22af
11
format.go
11
format.go
@ -14,9 +14,14 @@ func formatUtf8(in []byte) string {
|
||||
}
|
||||
|
||||
func formatAny(in interface{}) string {
|
||||
if _, ok := in.([]byte); ok {
|
||||
switch in := in.(type) {
|
||||
case []byte:
|
||||
return "<<binary>>"
|
||||
}
|
||||
|
||||
return fmt.Sprintf("%#v", in)
|
||||
case string:
|
||||
return in
|
||||
|
||||
default:
|
||||
return fmt.Sprintf("%#v", in)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user