Skip to content

Instantly share code, notes, and snippets.

@podhmo
Created September 17, 2020 01:34
package main
import (
"fmt"
"io"
"github.com/k0kubun/pp"
)
func main() {
err := fmt.Errorf("xxx: %w", fmt.Errorf("yyy: %w", io.EOF))
fmt.Printf("!! %+v", err)
pp.Println(err)
// &fmt.wrapError{
// msg: "xxx yyy EOF",
// err: &fmt.wrapError{
// msg: "yyy EOF",
// err: &errors.errorString{
// s: "EOF",
// },
// },
// }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment