Skip to content

Instantly share code, notes, and snippets.

@D4ryl00
D4ryl00 / stack.go
Last active March 9, 2023 23:18
Stack trace
package yourproject
import (
"fmt"
"runtime"
"strings"
)
func getStackFrameInfo(frame int) (string, bool) {
pc, file, line, ok := runtime.Caller(frame)
@D4ryl00
D4ryl00 / go.mod
Last active April 4, 2023 12:01
No PeerLeave event received when calling topic.Close()
module pubsub-event
go 1.19
require (
github.com/libp2p/go-libp2p v0.23.2
github.com/libp2p/go-libp2p-pubsub v0.8.1
)
require (