mirror of
https://github.com/waku-org/go-multiaddr.git
synced 2025-02-22 11:08:11 +00:00
Added badges, contribute, license, and fixed addr to ma
This commit is contained in:
parent
e50c11c893
commit
147dc71922
11
README.md
11
README.md
@ -4,9 +4,14 @@
|
||||
[](http://github.com/multiformats/multiformats)
|
||||
[](http://webchat.freenode.net/?channels=%23ipfs)
|
||||
|
||||
> multiaddr implementation in go
|
||||
> [multiaddr](https://github.com/multiformats/multiaddr) implementation in go
|
||||
|
||||
This is a [multiaddr](https://github.com/multiformats/multiaddr) implementation in Go.
|
||||
Multiaddr is a standard way to represent addresses that:
|
||||
- Support any standard network protocols.
|
||||
- Self-describe (include protocols).
|
||||
- Have a binary packed format.
|
||||
- Have a nice string representation.
|
||||
- Encapsulate well.
|
||||
|
||||
## Table of Contents
|
||||
|
||||
@ -54,7 +59,7 @@ m2.Equal(m1)
|
||||
|
||||
```go
|
||||
// get the multiaddr protocol description objects
|
||||
addr.Protocols()
|
||||
ma.Protocols()
|
||||
// []Protocol{
|
||||
// Protocol{ Code: 4, Name: 'ip4', Size: 32},
|
||||
// Protocol{ Code: 17, Name: 'udp', Size: 16},
|
||||
|
Loading…
x
Reference in New Issue
Block a user