mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-21 18:37:45 +08:00
16 lines
229 B
Go
16 lines
229 B
Go
package main
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
"github.com/ipfs/go-ipfs/core/commands"
|
|
)
|
|
|
|
func init() {
|
|
http.HandleFunc("/debug/stack",
|
|
func(w http.ResponseWriter, _ *http.Request) {
|
|
_ = commands.WriteAllGoroutineStacks(w)
|
|
},
|
|
)
|
|
}
|