sortimports

This commit is contained in:
Matt Joiner 2017-12-01 18:12:29 +11:00
parent 10f7a8124a
commit 4190856b6c
8 changed files with 16 additions and 15 deletions

View File

@ -9,6 +9,7 @@ import (
_ "github.com/anacrolix/envpprof" _ "github.com/anacrolix/envpprof"
"github.com/anacrolix/tagflag" "github.com/anacrolix/tagflag"
"github.com/anacrolix/torrent" "github.com/anacrolix/torrent"
"github.com/anacrolix/torrent/bencode" "github.com/anacrolix/torrent/bencode"
) )

View File

@ -9,8 +9,9 @@ import (
"os" "os"
"github.com/anacrolix/tagflag" "github.com/anacrolix/tagflag"
"github.com/anacrolix/torrent/metainfo"
"github.com/bradfitz/iter" "github.com/bradfitz/iter"
"github.com/anacrolix/torrent/metainfo"
) )
var flags struct { var flags struct {

View File

@ -1,16 +1,16 @@
package torrent package torrent
import ( import (
"crypto/tls"
"net"
"net/http"
"time"
"github.com/anacrolix/dht" "github.com/anacrolix/dht"
"golang.org/x/time/rate" "golang.org/x/time/rate"
"github.com/anacrolix/torrent/iplist" "github.com/anacrolix/torrent/iplist"
"github.com/anacrolix/torrent/storage" "github.com/anacrolix/torrent/storage"
"crypto/tls"
"net"
"net/http"
"time"
) )
var DefaultHTTPClient = &http.Client{ var DefaultHTTPClient = &http.Client{

View File

@ -14,14 +14,13 @@ import (
"sync" "sync"
"time" "time"
"github.com/anacrolix/torrent/mse"
"github.com/anacrolix/missinggo" "github.com/anacrolix/missinggo"
"github.com/anacrolix/missinggo/bitmap" "github.com/anacrolix/missinggo/bitmap"
"github.com/anacrolix/missinggo/iter" "github.com/anacrolix/missinggo/iter"
"github.com/anacrolix/missinggo/prioritybitmap" "github.com/anacrolix/missinggo/prioritybitmap"
"github.com/anacrolix/torrent/bencode" "github.com/anacrolix/torrent/bencode"
"github.com/anacrolix/torrent/mse"
pp "github.com/anacrolix/torrent/peer_protocol" pp "github.com/anacrolix/torrent/peer_protocol"
) )

View File

@ -4,11 +4,11 @@ import (
"context" "context"
"io" "io"
"github.com/anacrolix/missinggo"
"github.com/anacrolix/torrent"
"bazil.org/fuse" "bazil.org/fuse"
"bazil.org/fuse/fs" "bazil.org/fuse/fs"
"github.com/anacrolix/missinggo"
"github.com/anacrolix/torrent"
) )
type fileHandle struct { type fileHandle struct {

View File

@ -8,11 +8,11 @@ import (
"net" "net"
"time" "time"
pp "github.com/anacrolix/torrent/peer_protocol"
"github.com/anacrolix/missinggo" "github.com/anacrolix/missinggo"
"github.com/anacrolix/torrent/metainfo" "github.com/anacrolix/torrent/metainfo"
"github.com/anacrolix/torrent/mse" "github.com/anacrolix/torrent/mse"
pp "github.com/anacrolix/torrent/peer_protocol"
) )
type ExtensionBit uint type ExtensionBit uint

View File

@ -11,7 +11,6 @@ import (
"testing" "testing"
_ "github.com/anacrolix/envpprof" _ "github.com/anacrolix/envpprof"
"github.com/bradfitz/iter" "github.com/bradfitz/iter"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
) )

View File

@ -4,8 +4,9 @@ import (
"encoding/binary" "encoding/binary"
"github.com/anacrolix/missinggo/x" "github.com/anacrolix/missinggo/x"
"github.com/anacrolix/torrent/metainfo"
"github.com/boltdb/bolt" "github.com/boltdb/bolt"
"github.com/anacrolix/torrent/metainfo"
) )
type boltDBPiece struct { type boltDBPiece struct {