Questions tagged [go-libp2p]

16 questions
-2
votes
2 answers

Bugs when running the example of go-libp2p-http

The problem lies in go func. The error message is expression in go must be function call listener, _ := gostream.Listen(host1, p2phttp.DefaultP2PProtocol) defer listener.Close() go func() { http.HandleFunc("/hello", func(w…
kou
  • 31
  • 3
1
2