go-multiprotocol/README.md

1.2 KiB

go-multiprotocol

Version MIT License API Reference Go Report Card Build Status

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.