Skip to content

Commit 86f3659

Browse files
authored
chore: use String() instead of fmt.Sprintf (#678)
Signed-off-by: guoguangwu <[email protected]>
1 parent 642ead0 commit 86f3659

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

format/format.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ func formatType(v reflect.Value) string {
302302
case reflect.Map:
303303
return fmt.Sprintf("%s | len:%d", v.Type(), v.Len())
304304
default:
305-
return fmt.Sprintf("%s", v.Type())
305+
return v.Type().String()
306306
}
307307
}
308308

0 commit comments

Comments
 (0)