@@ -40,51 +40,43 @@ func Baz(z int) error {
40
40
}
41
41
42
42
func main () {
43
- fmt .Println ("### Foo: just show error text" )
43
+ fmt .Println ("#### Foo: just show error text" )
44
44
if err := Foo (- 1 ); err != nil {
45
45
fmt .Printf ("%v\n " , err )
46
46
}
47
- fmt .Printf ("### \n \n " )
48
47
49
- fmt .Println ("### Foo: show with stack trace" )
48
+ fmt .Println ("#### Foo: show with stack trace" )
50
49
if err := Foo (- 2 ); err != nil {
51
50
fmt .Printf ("%+v\n " , err )
52
51
}
53
- fmt .Printf ("### \n \n " )
54
52
55
- fmt .Println ("### Foo: show with stack trace, and use space as whitespace instead of tab" )
53
+ fmt .Println ("#### Foo: show with stack trace, and use space as whitespace instead of tab" )
56
54
if err := Foo (- 3 ); err != nil {
57
55
fmt .Printf ("%+-v\n " , err )
58
56
}
59
- fmt .Printf ("### \n \n " )
60
57
61
- fmt .Println ("### Foo: show with last stack trace" )
58
+ fmt .Println ("#### Foo: show with last stack trace" )
62
59
if err := Foo (- 4 ); err != nil {
63
60
fmt .Printf ("%+0v\n " , err )
64
61
}
65
- fmt .Printf ("### \n \n " )
66
62
67
- fmt .Println ("### Foo: show with stack trace with only file names except full path" )
63
+ fmt .Println ("#### Foo: show with stack trace with only file names except full path" )
68
64
if err := Foo (- 5 ); err != nil {
69
65
fmt .Printf ("%+#v\n " , err )
70
66
}
71
- fmt .Printf ("### \n \n " )
72
67
73
- fmt .Println ("### Foo: show with stack trace with 2 whitespace chars of padding and 1 whitespace char of indent" )
68
+ fmt .Println ("#### Foo: show with stack trace with 2 whitespace chars of padding and 1 whitespace char of indent" )
74
69
if err := Foo (- 6 ); err != nil {
75
70
fmt .Printf ("%+2.1v\n " , err )
76
71
}
77
- fmt .Printf ("### \n \n " )
78
72
79
- fmt .Println ("### Bar: show with stack trace" )
73
+ fmt .Println ("#### Bar: show with stack trace" )
80
74
if err := Bar (- 7 ); err != nil {
81
75
fmt .Printf ("%+v\n " , err )
82
76
}
83
- fmt .Printf ("### \n \n " )
84
77
85
- fmt .Println ("### Baz: show with stack trace" )
78
+ fmt .Println ("#### Baz: show with stack trace" )
86
79
if err := Baz (- 8 ); err != nil {
87
80
fmt .Printf ("%+v\n " , err )
88
81
}
89
- fmt .Printf ("### \n \n " )
90
82
}
0 commit comments