Run goimports

This commit is contained in:
Alexander Neumann
2017-07-23 14:21:03 +02:00
parent 83d1a46526
commit 6caeff2408
158 changed files with 524 additions and 438 deletions

View File

@@ -3,11 +3,12 @@ package archiver
import (
"context"
"io"
"restic"
"restic/debug"
"time"
"restic/errors"
"github.com/restic/restic/internal"
"github.com/restic/restic/internal/debug"
"github.com/restic/restic/internal/errors"
"github.com/restic/chunker"
)

View File

@@ -6,10 +6,11 @@ import (
"errors"
"io"
"math/rand"
"restic"
"restic/checker"
"restic/repository"
"testing"
"github.com/restic/restic/internal"
"github.com/restic/restic/internal/checker"
"github.com/restic/restic/internal/repository"
)
func loadBlob(t *testing.T, repo restic.Repository, id restic.ID, buf []byte) int {

View File

@@ -7,17 +7,18 @@ import (
"io"
"os"
"path/filepath"
"restic"
"sort"
"sync"
"time"
"restic/errors"
"restic/walk"
"github.com/restic/restic/internal"
"restic/debug"
"restic/fs"
"restic/pipe"
"github.com/restic/restic/internal/errors"
"github.com/restic/restic/internal/walk"
"github.com/restic/restic/internal/debug"
"github.com/restic/restic/internal/fs"
"github.com/restic/restic/internal/pipe"
"github.com/restic/chunker"
)

View File

@@ -9,12 +9,12 @@ import (
"testing"
"time"
"restic/errors"
"github.com/restic/restic/internal/errors"
"restic"
"restic/archiver"
"restic/mock"
"restic/repository"
"github.com/restic/restic/internal"
"github.com/restic/restic/internal/archiver"
"github.com/restic/restic/internal/mock"
"github.com/restic/restic/internal/repository"
)
const parallelSaves = 50

View File

@@ -5,8 +5,8 @@ import (
"os"
"testing"
"restic/pipe"
"restic/walk"
"github.com/restic/restic/internal/pipe"
"github.com/restic/restic/internal/walk"
)
var treeJobs = []string{

View File

@@ -7,14 +7,14 @@ import (
"testing"
"time"
"restic"
"restic/archiver"
"restic/checker"
"restic/crypto"
"restic/repository"
. "restic/test"
"github.com/restic/restic/internal"
"github.com/restic/restic/internal/archiver"
"github.com/restic/restic/internal/checker"
"github.com/restic/restic/internal/crypto"
"github.com/restic/restic/internal/repository"
. "github.com/restic/restic/internal/test"
"restic/errors"
"github.com/restic/restic/internal/errors"
"github.com/restic/chunker"
)

View File

@@ -2,8 +2,9 @@ package archiver
import (
"context"
"restic"
"testing"
"github.com/restic/restic/internal"
)
// TestSnapshot creates a new snapshot of path.