goimports -w .

This commit is contained in:
Dave Collins 2014-07-02 19:29:48 -05:00
parent 52be380fd1
commit 6c4b5928ab
11 changed files with 26 additions and 15 deletions

View file

@ -6,9 +6,10 @@ package btcutil
import ( import (
"bytes" "bytes"
"code.google.com/p/go.crypto/ripemd160"
"encoding/hex" "encoding/hex"
"errors" "errors"
"code.google.com/p/go.crypto/ripemd160"
"github.com/conformal/btcec" "github.com/conformal/btcec"
"github.com/conformal/btcnet" "github.com/conformal/btcnet"
"github.com/conformal/btcwire" "github.com/conformal/btcwire"

View file

@ -5,9 +5,10 @@
package btcutil_test package btcutil_test
import ( import (
. "github.com/conformal/btcutil"
"math" "math"
"testing" "testing"
. "github.com/conformal/btcutil"
) )
func TestAmountCreation(t *testing.T) { func TestAmountCreation(t *testing.T) {

View file

@ -5,13 +5,14 @@
package btcutil_test package btcutil_test
import ( import (
"github.com/conformal/btcutil"
"os" "os"
"os/user" "os/user"
"path/filepath" "path/filepath"
"runtime" "runtime"
"testing" "testing"
"unicode" "unicode"
"github.com/conformal/btcutil"
) )
// TestAppDataDir tests the API for AppDataDir to ensure it gives expected // TestAppDataDir tests the API for AppDataDir to ensure it gives expected

View file

@ -7,8 +7,9 @@ package btcutil_test
import ( import (
"bytes" "bytes"
"encoding/hex" "encoding/hex"
"github.com/conformal/btcutil"
"testing" "testing"
"github.com/conformal/btcutil"
) )
var stringTests = []struct { var stringTests = []struct {

View file

@ -7,8 +7,9 @@ package btcutil
import ( import (
"bytes" "bytes"
"fmt" "fmt"
"github.com/conformal/btcwire"
"io" "io"
"github.com/conformal/btcwire"
) )
// OutOfRangeError describes an error due to accessing an element that is out // OutOfRangeError describes an error due to accessing an element that is out

View file

@ -6,13 +6,14 @@ package btcutil_test
import ( import (
"bytes" "bytes"
"github.com/conformal/btcutil"
"github.com/conformal/btcwire"
"github.com/davecgh/go-spew/spew"
"io" "io"
"reflect" "reflect"
"testing" "testing"
"time" "time"
"github.com/conformal/btcutil"
"github.com/conformal/btcwire"
"github.com/davecgh/go-spew/spew"
) )
// TestBlock tests the API for Block. // TestBlock tests the API for Block.

View file

@ -3,9 +3,10 @@ package coinset
import ( import (
"container/list" "container/list"
"errors" "errors"
"sort"
"github.com/conformal/btcutil" "github.com/conformal/btcutil"
"github.com/conformal/btcwire" "github.com/conformal/btcwire"
"sort"
) )
// Coin represents a spendable transaction outpoint // Coin represents a spendable transaction outpoint

View file

@ -4,11 +4,12 @@ import (
"bytes" "bytes"
"encoding/hex" "encoding/hex"
"fmt" "fmt"
"testing"
"github.com/conformal/btcutil" "github.com/conformal/btcutil"
"github.com/conformal/btcutil/coinset" "github.com/conformal/btcutil/coinset"
"github.com/conformal/btcwire" "github.com/conformal/btcwire"
"github.com/conformal/fastsha256" "github.com/conformal/fastsha256"
"testing"
) )
type TestCoin struct { type TestCoin struct {

View file

@ -5,9 +5,10 @@
package btcutil package btcutil
import ( import (
"hash"
"code.google.com/p/go.crypto/ripemd160" "code.google.com/p/go.crypto/ripemd160"
"github.com/conformal/fastsha256" "github.com/conformal/fastsha256"
"hash"
) )
// Calculate the hash of hasher over buf. // Calculate the hash of hasher over buf.

3
tx.go
View file

@ -6,8 +6,9 @@ package btcutil
import ( import (
"bytes" "bytes"
"github.com/conformal/btcwire"
"io" "io"
"github.com/conformal/btcwire"
) )
// TxIndexUnknown is the value returned for a transaction index that is unknown. // TxIndexUnknown is the value returned for a transaction index that is unknown.

View file

@ -6,12 +6,13 @@ package btcutil_test
import ( import (
"bytes" "bytes"
"github.com/conformal/btcutil"
"github.com/conformal/btcwire"
"github.com/davecgh/go-spew/spew"
"io" "io"
"reflect" "reflect"
"testing" "testing"
"github.com/conformal/btcutil"
"github.com/conformal/btcwire"
"github.com/davecgh/go-spew/spew"
) )
// TestTx tests the API for Tx. // TestTx tests the API for Tx.