1.2 KiB
1.2 KiB
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.