docs
docs copied to clipboard
Incorrect go version requirement
Documentation here specifies the minimum go version is 1.19 but is in fact 1.20
$ go build -o libp2p-node
# github.com/quic-go/quic-go/internal/qtls
/home/alejandro/go/pkg/mod/github.com/quic-go/[email protected]/internal/qtls/go_oldversion.go:5:13: cannot use "The version of quic-go you're using can't be built using outdated Go versions. For more details, please see https://github.com/quic-go/quic-go/wiki/quic-go-and-Go-versions." (untyped string constant "The version of quic-go you're using can't be built using outdated Go...) as int value in variable declaration
note: module requires Go 1.20
Now that all transports are expose all required features, this is less of an issue (no more HasEncryption, HasMultiplexing, IsReliable). However, we will likely still want "traits" for optional (but useful) features.
One example would be https://github.com/libp2p/go-libp2p-swarm/pull/57#discussion_r194146101
Being able to send packets "out of band" or unencrypted would be nice.