# README
go-ipfs-addr
A parsing utility for ipfs multiaddrs.
Table of Contents
Install
make install
Examples
import "github.com/ipfs/go-ipfs-addr"
addrstr := "/ip4/104.131.131.82/tcp/4001/ipfs/QmaCpDMGvV2BGHeYERUEnRQAwe3N8SzbUtfsmvsqQLuvuJ"
a, _ := ipfsaddr.ParseString(addr)
fmt.Println("peer id: ", a.ID())
fmt.Println("transport multiaddr: ", a.Transport())
Contribute
PRs are welcome!
Small note: If editing the Readme, please conform to the standard-readme specification.
License
MIT © Whyrusleeping
# Functions
ParseMultiaddr parses a multiaddr into an IPFSAddr.
ParseString parses a string representation of an address into an IPFSAddr.
No description provided by the author
# Variables
ErrInvalidAddr signals an address is not a valid IPFS address.
# Interfaces
No description provided by the author