> %w is not a formatting verb, so fmt.Prinf("%w") is not valid.
yes, i thought i was pasting fmt.Errorf("%w",err) err1:= errors.New("error") > err1= fmt.Errorf("fmt wrapping: %w",err1) > fmt.Println(err1) > > err2:=errors.New("error") > err3= fmt.Errorf("Wrapped: %w",err2) > // Here, err3 is an error wrapping err2 > fmt.Println(err3) > i was trying to create a error 'class', i now realise fmt.Errorf isn't capable/for that. i thought all wrapping was 'grouping' i now see another use case that this handles. it was the two uses that confused me. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/30998308-ead1-493c-b450-dd8124f5aea2n%40googlegroups.com.