Created
September 17, 2020 01:34
-
-
Save podhmo/78299bd52622f6a725b772d601dc34e3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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