We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb152fa commit 12db281Copy full SHA for 12db281
internal/debug/debug.go
@@ -159,7 +159,9 @@ func FprintStack(w io.Writer, si StackInfo) {
159
// frames we should go back (Level), and other fields tell how to find the
160
// actual line where calculation should be started.
161
func FuncName(si StackInfo) (n string, ln int, frame int, ok bool) {
162
- stackBuf := bytes.NewBuffer(debug.Stack())
+ stack := debug.Stack()
163
+ //println(string(stack))
164
+ stackBuf := bytes.NewBuffer(stack)
165
return funcName(stackBuf, si)
166
}
167
0 commit comments