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")
// err non-nil when parsing failed.
mp, err := mp.NewMultiprotocol("/vac/waku/2/store/2/relay/2")
// err non-nil when parsing failed.
Protocols can also be added programatically using the AddProtocol
function.