This commit is contained in:
decanus 2020-02-27 17:22:24 +01:00
parent 4b197e5784
commit b6ea07e5cf
No known key found for this signature in database
GPG Key ID: E95B8C69228FF5B4
1 changed files with 5 additions and 1 deletions

View File

@ -5,7 +5,11 @@ A lot of this code has been adapted from [multiaddr](https://github.com/multifor
Multiprotocol can be initialized using a CSV file, for the CSV format see the [specification](https://github.com/vacp2p/multiprotocol).
```go
err := Init("testdata/multiprotocol.csv")
package main
import mp "github.com/vacp2p/go-multiprotocol"
err := mp.Init("testdata/multiprotocol.csv")
if err != nil {
print(err)
}