Skip to content

Instantly share code, notes, and snippets.

@podhmo
Created September 17, 2020 01:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save podhmo/78299bd52622f6a725b772d601dc34e3 to your computer and use it in GitHub Desktop.
Save podhmo/78299bd52622f6a725b772d601dc34e3 to your computer and use it in GitHub Desktop.
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