build: run standard goimports on all files

This commit is contained in:
Thomas Modeneis 2018-04-06 16:48:42 +02:00
parent 84c3eadfbc
commit 431af6b970
4 changed files with 9 additions and 5 deletions

View file

@ -13,4 +13,5 @@ find_files() {
} }
GOFMT="gofmt -s -w"; GOFMT="gofmt -s -w";
GOFMT="goimports -w";
find_files | xargs $GOFMT; find_files | xargs $GOFMT;

View file

@ -18,12 +18,13 @@
package consensus package consensus
import ( import (
"math/big"
"github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/state" "github.com/ethereum/go-ethereum/core/state"
"github.com/ethereum/go-ethereum/core/types" "github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/params" "github.com/ethereum/go-ethereum/params"
"github.com/ethereum/go-ethereum/rpc" "github.com/ethereum/go-ethereum/rpc"
"math/big"
) )
// ChainReader defines a small collection of methods needed to access the local // ChainReader defines a small collection of methods needed to access the local

View file

@ -19,12 +19,13 @@
package fuse package fuse
import ( import (
"bazil.org/fuse"
"bazil.org/fuse/fs"
"golang.org/x/net/context"
"os" "os"
"path/filepath" "path/filepath"
"sync" "sync"
"bazil.org/fuse"
"bazil.org/fuse/fs"
"golang.org/x/net/context"
) )
var ( var (

View file

@ -17,9 +17,10 @@
package fuse package fuse
import ( import (
"github.com/ethereum/go-ethereum/swarm/api"
"sync" "sync"
"time" "time"
"github.com/ethereum/go-ethereum/swarm/api"
) )
const ( const (