libp2p go example

Description

Toy example to get a sense of how libp2p works. I've separated the example into pieces to make it clear how each part works. There are two binaries: one that works as a server and another as a client. Both communicate using the echo protocol.

Mostly inspired by Getting started with go-libp2p and libp2p go example.

How to build

go build ./cmd/server/

go build ./cmd/client/

How to run

./server [PORT]

./client [PEER] [INPUT]