First Commmit
This commit is contained in:
12
experimental/libbox/debug.go
Normal file
12
experimental/libbox/debug.go
Normal file
@@ -0,0 +1,12 @@
|
||||
package libbox
|
||||
|
||||
import (
|
||||
"time"
|
||||
"unsafe"
|
||||
)
|
||||
|
||||
func TriggerGoPanic() {
|
||||
time.AfterFunc(200*time.Millisecond, func() {
|
||||
*(*int)(unsafe.Pointer(uintptr(0))) = 0
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user