mirror of
https://github.com/vacp2p/go-multiprotocol.git
synced 2026-01-10 07:18:07 -05:00
50fca4b8cf00f6cd9718650545eb4d7b4f07deed
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)
return
}
mp, err := mp.NewMultiprotocol("/vac/waku/2/store/2/relay/2")
if err != nil {
print(err)
}
Protocols can also be added programatically using the AddProtocol function.
Languages
Go
97.7%
Makefile
2.3%