goimports -w .
This commit is contained in:
parent
52be380fd1
commit
6c4b5928ab
11 changed files with 26 additions and 15 deletions
|
@ -6,9 +6,10 @@ package btcutil
|
|||
|
||||
import (
|
||||
"bytes"
|
||||
"code.google.com/p/go.crypto/ripemd160"
|
||||
"encoding/hex"
|
||||
"errors"
|
||||
|
||||
"code.google.com/p/go.crypto/ripemd160"
|
||||
"github.com/conformal/btcec"
|
||||
"github.com/conformal/btcnet"
|
||||
"github.com/conformal/btcwire"
|
||||
|
|
|
@ -5,9 +5,10 @@
|
|||
package btcutil_test
|
||||
|
||||
import (
|
||||
. "github.com/conformal/btcutil"
|
||||
"math"
|
||||
"testing"
|
||||
|
||||
. "github.com/conformal/btcutil"
|
||||
)
|
||||
|
||||
func TestAmountCreation(t *testing.T) {
|
||||
|
|
|
@ -5,13 +5,14 @@
|
|||
package btcutil_test
|
||||
|
||||
import (
|
||||
"github.com/conformal/btcutil"
|
||||
"os"
|
||||
"os/user"
|
||||
"path/filepath"
|
||||
"runtime"
|
||||
"testing"
|
||||
"unicode"
|
||||
|
||||
"github.com/conformal/btcutil"
|
||||
)
|
||||
|
||||
// TestAppDataDir tests the API for AppDataDir to ensure it gives expected
|
||||
|
|
|
@ -7,8 +7,9 @@ package btcutil_test
|
|||
import (
|
||||
"bytes"
|
||||
"encoding/hex"
|
||||
"github.com/conformal/btcutil"
|
||||
"testing"
|
||||
|
||||
"github.com/conformal/btcutil"
|
||||
)
|
||||
|
||||
var stringTests = []struct {
|
||||
|
|
3
block.go
3
block.go
|
@ -7,8 +7,9 @@ package btcutil
|
|||
import (
|
||||
"bytes"
|
||||
"fmt"
|
||||
"github.com/conformal/btcwire"
|
||||
"io"
|
||||
|
||||
"github.com/conformal/btcwire"
|
||||
)
|
||||
|
||||
// OutOfRangeError describes an error due to accessing an element that is out
|
||||
|
|
|
@ -6,13 +6,14 @@ package btcutil_test
|
|||
|
||||
import (
|
||||
"bytes"
|
||||
"github.com/conformal/btcutil"
|
||||
"github.com/conformal/btcwire"
|
||||
"github.com/davecgh/go-spew/spew"
|
||||
"io"
|
||||
"reflect"
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/conformal/btcutil"
|
||||
"github.com/conformal/btcwire"
|
||||
"github.com/davecgh/go-spew/spew"
|
||||
)
|
||||
|
||||
// TestBlock tests the API for Block.
|
||||
|
|
|
@ -3,9 +3,10 @@ package coinset
|
|||
import (
|
||||
"container/list"
|
||||
"errors"
|
||||
"sort"
|
||||
|
||||
"github.com/conformal/btcutil"
|
||||
"github.com/conformal/btcwire"
|
||||
"sort"
|
||||
)
|
||||
|
||||
// Coin represents a spendable transaction outpoint
|
||||
|
|
|
@ -4,11 +4,12 @@ import (
|
|||
"bytes"
|
||||
"encoding/hex"
|
||||
"fmt"
|
||||
"testing"
|
||||
|
||||
"github.com/conformal/btcutil"
|
||||
"github.com/conformal/btcutil/coinset"
|
||||
"github.com/conformal/btcwire"
|
||||
"github.com/conformal/fastsha256"
|
||||
"testing"
|
||||
)
|
||||
|
||||
type TestCoin struct {
|
||||
|
|
|
@ -5,9 +5,10 @@
|
|||
package btcutil
|
||||
|
||||
import (
|
||||
"hash"
|
||||
|
||||
"code.google.com/p/go.crypto/ripemd160"
|
||||
"github.com/conformal/fastsha256"
|
||||
"hash"
|
||||
)
|
||||
|
||||
// Calculate the hash of hasher over buf.
|
||||
|
|
3
tx.go
3
tx.go
|
@ -6,8 +6,9 @@ package btcutil
|
|||
|
||||
import (
|
||||
"bytes"
|
||||
"github.com/conformal/btcwire"
|
||||
"io"
|
||||
|
||||
"github.com/conformal/btcwire"
|
||||
)
|
||||
|
||||
// TxIndexUnknown is the value returned for a transaction index that is unknown.
|
||||
|
|
|
@ -6,12 +6,13 @@ package btcutil_test
|
|||
|
||||
import (
|
||||
"bytes"
|
||||
"github.com/conformal/btcutil"
|
||||
"github.com/conformal/btcwire"
|
||||
"github.com/davecgh/go-spew/spew"
|
||||
"io"
|
||||
"reflect"
|
||||
"testing"
|
||||
|
||||
"github.com/conformal/btcutil"
|
||||
"github.com/conformal/btcwire"
|
||||
"github.com/davecgh/go-spew/spew"
|
||||
)
|
||||
|
||||
// TestTx tests the API for Tx.
|
||||
|
|
Loading…
Reference in a new issue