mirror of
https://github.com/logos-messaging/go-multiaddr.git
synced 2026-01-04 05:53:05 +00:00
Merge pull request #27 from RichardLitt/feature/readme
Added badges, contribute, license, and fixed addr to ma
This commit is contained in:
commit
b23eb95805
12
README.md
12
README.md
@ -4,9 +4,15 @@
|
|||||||
[](http://github.com/multiformats/multiformats)
|
[](http://github.com/multiformats/multiformats)
|
||||||
[](http://webchat.freenode.net/?channels=%23ipfs)
|
[](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
|
## Table of Contents
|
||||||
|
|
||||||
@ -54,7 +60,7 @@ m2.Equal(m1)
|
|||||||
|
|
||||||
```go
|
```go
|
||||||
// get the multiaddr protocol description objects
|
// get the multiaddr protocol description objects
|
||||||
addr.Protocols()
|
m1.Protocols()
|
||||||
// []Protocol{
|
// []Protocol{
|
||||||
// Protocol{ Code: 4, Name: 'ip4', Size: 32},
|
// Protocol{ Code: 4, Name: 'ip4', Size: 32},
|
||||||
// Protocol{ Code: 17, Name: 'udp', Size: 16},
|
// Protocol{ Code: 17, Name: 'udp', Size: 16},
|
||||||
|
|||||||
2
doc.go
2
doc.go
@ -3,7 +3,7 @@ Package multiaddr provides an implementation of the Multiaddr network
|
|||||||
address format. Multiaddr emphasizes explicitness, self-description, and
|
address format. Multiaddr emphasizes explicitness, self-description, and
|
||||||
portability. It allows applications to treat addresses as opaque tokens,
|
portability. It allows applications to treat addresses as opaque tokens,
|
||||||
and to avoid making assumptions about the address representation (e.g. length).
|
and to avoid making assumptions about the address representation (e.g. length).
|
||||||
Learn more at https://github.com/jbenet/multiaddr
|
Learn more at https://github.com/multiformats/multiaddr
|
||||||
|
|
||||||
Basic Use:
|
Basic Use:
|
||||||
|
|
||||||
|
|||||||
@ -3,7 +3,7 @@ package multiaddr
|
|||||||
/*
|
/*
|
||||||
Multiaddr is a cross-protocol, cross-platform format for representing
|
Multiaddr is a cross-protocol, cross-platform format for representing
|
||||||
internet addresses. It emphasizes explicitness and self-description.
|
internet addresses. It emphasizes explicitness and self-description.
|
||||||
Learn more here: https://github.com/jbenet/multiaddr
|
Learn more here: https://github.com/multiformats/multiaddr
|
||||||
|
|
||||||
Multiaddrs have both a binary and string representation.
|
Multiaddrs have both a binary and string representation.
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user