Go implementation for self-describing protocol identifiers
Go to file
Dean Eigenmann 6ad889900c
Create .travis.yml
2020-02-28 13:34:33 +01:00
testdata updated 2020-02-27 17:21:38 +01:00
.gitignore Initial commit 2020-02-27 04:09:11 +01:00
.travis.yml Create .travis.yml 2020-02-28 13:34:33 +01:00
LICENSE Initial commit 2020-02-27 04:09:11 +01:00
Makefile Create Makefile 2020-02-28 13:34:06 +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 added test 2020-02-27 21:33:28 +01:00
init.go updated 2020-02-27 17:21:38 +01:00
init_test.go started working on tests 2020-02-27 18:40:23 +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 added test 2020-02-27 21:33:28 +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.