stacktraces.go
func stacks() []byte {
	buf := make([]byte, 1024*16)
	for {
		n := runtime.Stack(buf, true)
		if n < len(buf) {
			return buf[:n]
		}
		buf = make([]byte, 2*len(buf))
	}
}
func stacks() []byte {
	buf := make([]byte, 1024*16)
	for {
		n := runtime.Stack(buf, true)
		if n < len(buf) {
			return buf[:n]
		}
		buf = make([]byte, 2*len(buf))
	}
}
func stacks ( ) [ ] byte { buf := make ( [ ] byte , 1024 * 16 ) for { n := runtime . Stack ( buf , true ) if n < len ( buf ) { return buf [ : n ] } buf = make ( [ ] byte , 2 * len ( buf ) ) } }
// Stacktraces for all goroutines.
Stacktraces for all goroutines .