ceremonyclient/go-libp2p/examples/ipfs-camp-2019/01-Transports/main.go
2023-08-20 23:07:43 -05:00

18 lines
255 B
Go

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()
}