Go implementation for self-describing protocol identifiers
Go to file
decanus 4aa49f17ea
find replace
2020-02-27 17:26:53 +01:00
testdata updated 2020-02-27 17:21:38 +01:00
.gitignore Initial commit 2020-02-27 04:09:11 +01:00
LICENSE Initial commit 2020-02-27 04:09:11 +01:00
README.md fix 2020-02-27 17:22:56 +01:00
codec.go updated 2020-02-27 17:21:38 +01:00
component.go find replace 2020-02-27 17:26:53 +01:00
init.go updated 2020-02-27 17:21:38 +01:00
interface.go started implementation mainly taking from multiaddr 2020-02-27 15:17:16 +01:00
multiprotocol.go find replace 2020-02-27 17:26:53 +01:00
multiprotocol_test.go updated 2020-02-27 17:21:38 +01:00
protocol.go find replace 2020-02-27 17:26:53 +01:00
util.go started implementation mainly taking from multiaddr 2020-02-27 15:17:16 +01:00

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.