b24a00c6a9 | ||
---|---|---|
testdata | ||
.gitignore | ||
.travis.yml | ||
LICENSE | ||
Makefile | ||
README.md | ||
codec.go | ||
component.go | ||
init.go | ||
init_test.go | ||
interface.go | ||
multiprotocol.go | ||
multiprotocol_test.go | ||
protocol.go | ||
util.go |
README.md
go-multiprotocol
A lot of this code has been adapted from multiaddr.
Multiprotocol can be initialized using a CSV file, for the CSV format see the specification.
package main
import mp "github.com/vacp2p/go-multiprotocol"
err := mp.Init("testdata/multiprotocol.csv")
if err != nil {
print(err)
}
Protocols can also be added programatically using the AddProtocol
function.