4aa49f17ea | ||
---|---|---|
testdata | ||
.gitignore | ||
LICENSE | ||
README.md | ||
codec.go | ||
component.go | ||
init.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.