ceremonyclient/go-libp2p/examples/ipfs-camp-2019/01-Transports/main.go

18 lines
255 B
Go
Raw Normal View History

2023-08-21 03:50:38 +00:00
package main
import (
"github.com/libp2p/go-libp2p"
)
func main() {
// TODO: add some libp2p.Transport options to this chain!
transports := libp2p.ChainOptions()
host, err := libp2p.New(transports)
if err != nil {
panic(err)
}
host.Close()
}