libp2p / go-libp2p-examples

Example libp2p applications
MIT License
338 stars 145 forks source link

Add Go module support #40

Closed anacrolix closed 5 years ago

anacrolix commented 5 years ago

This seems like a good opportunity to add and demonstrate the Go module turd files, as currently this repo will not be go-gettable until libp2p/go-reuseport-transport#6 is merged. There's also no gx for this repo to contend with. The added go.mod files include go-reuseport wasm support without using the unmerged PR to go-reuseport-transport.

Users can (with Go 1.11) install all the binaries for example with GO111MODULE=on go install -v ./... from the repo root, and test wasm build compat with GO111MODULE=on GOOS=js GOARCH=wasm go test ./....

raulk commented 5 years ago

@anacrolix PR was opened 25 days ago. Have any deps changed since then?

anacrolix commented 5 years ago

@raulk No they haven't (just tested). A future PR can include CI for go mod support.