patch library: todo message

This commit is contained in:
xushiwei
2024-07-16 22:16:33 +08:00
parent 3ce55a2ac4
commit ade0d38a7c
7 changed files with 47 additions and 50 deletions

View File

@@ -777,13 +777,10 @@ func (p *pp) printArg(arg any, verb rune) {
func (p *pp) printValue(value reflect.Value, verb rune, depth int) {
// Handle values with special methods if not already handled by printArg (depth == 0).
if depth > 0 && value.IsValid() && value.CanInterface() {
/* TODO(xsw):
p.arg = value.Interface()
if p.handleMethods(verb) {
return
}
*/
panic("todo: fmt.(*pp).printValue - handleMethods")
}
p.arg = nil
p.value = value