You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
./packrat.go:361:43: fmt.Sprint arg List is a func value, not called
./printer.go:66:23: fmt.Sprint arg v is a func value, not called
./printer.go:66:40: fmt.Sprint arg List is a func value, not called
./printer.go:142:119: fmt.Sprint arg List is a func value, not called
./printer.go:165:25: fmt.Sprint arg v is a func value, not called
The thing is, the code is correct and should compile (and does compile on go 1.22.0). The result of fmt.Sprint(f) where f is a func() is a hex value identifying the closure like in:
// tell if v is the "List" function
if fmt.Sprint(v) == fmt.Sprint(List) { //fmt.Sprint
return "list"
}
The text was updated successfully, but these errors were encountered:
The thing is, the code is correct and should compile (and does compile on go 1.22.0). The result of fmt.Sprint(f) where f is a func() is a hex value identifying the closure like in:
The text was updated successfully, but these errors were encountered: