From e20e4e73a90487934b16718fec8a3f0cfd97e261 Mon Sep 17 00:00:00 2001 From: Lars Gierth Date: Thu, 29 Sep 2016 14:52:32 +0200 Subject: [PATCH] Update multiformats imports --- README.md | 2 +- codec.go | 6 +++--- doc.go | 2 +- interface.go | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 3c44f52..ab80e12 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,7 @@ go get multiformats/multiaddr #### Simple ```go -import ma "github.com/jbenet/go-multiaddr" +import ma "github.com/multiformats/go-multiaddr" // construct from a string (err signals parse failure) m1, err := ma.NewMultiaddr("/ip4/127.0.0.1/udp/1234") diff --git a/codec.go b/codec.go index 36de467..3fc7dd2 100644 --- a/codec.go +++ b/codec.go @@ -4,13 +4,13 @@ import ( "bytes" "encoding/base32" "encoding/binary" + "errors" "fmt" "net" "strconv" "strings" - "errors" - mh "github.com/jbenet/go-multihash" + mh "github.com/multiformats/go-multihash" ) func stringToBytes(s string) ([]byte, error) { @@ -298,7 +298,7 @@ func addressBytesToString(p Protocol, b []byte) (string, error) { case P_ONION: addr := strings.ToLower(base32.StdEncoding.EncodeToString(b[0:10])) port := binary.BigEndian.Uint16(b[10:12]) - return addr + ":"+ strconv.Itoa(int(port)), nil + return addr + ":" + strconv.Itoa(int(port)), nil case P_UNIX: // the address is a varint len prefixed string diff --git a/doc.go b/doc.go index c26e443..b82f0e5 100644 --- a/doc.go +++ b/doc.go @@ -10,7 +10,7 @@ Basic Use: import ( "bytes" "strings" - ma "github.com/jbenet/go-multiaddr" + ma "github.com/multiformats/go-multiaddr" ) // construct from a string (err signals parse failure) diff --git a/interface.go b/interface.go index 18de2a2..f8f2f6a 100644 --- a/interface.go +++ b/interface.go @@ -7,7 +7,7 @@ Learn more here: https://github.com/jbenet/multiaddr Multiaddrs have both a binary and string representation. - import ma "github.com/jbenet/go-multiaddr" + import ma "github.com/multiformats/go-multiaddr" addr, err := ma.NewMultiaddr("/ip4/1.2.3.4/tcp/80") // err non-nil when parsing failed.