github.com/arieschain/arieschain@v0.0.0-20191023063405-37c074544356/internal/debug/loudpanic.go (about) 1 // +build go1.6 2 3 package debug 4 5 import "runtime/debug" 6 7 // LoudPanic panics in a way that gets all goroutine stacks printed on stderr. 8 func LoudPanic(x interface{}) { 9 debug.SetTraceback("all") 10 panic(x) 11 }