Skip to content
Snippets Groups Projects
Unverified Commit b9259fb6 authored by Hans Moog's avatar Hans Moog Committed by GitHub
Browse files

Merge pull request #13 from iotaledger/refactoring-goimports

refactoring via goimports
parents 8bdd1796 8353f815
No related branches found
No related tags found
No related merge requests found
Showing
with 734 additions and 732 deletions
package accountability package accountability
import ( import (
"sync"
"github.com/dgraph-io/badger" "github.com/dgraph-io/badger"
"github.com/iotaledger/goshimmer/packages/settings"
"github.com/iotaledger/goshimmer/packages/identity" "github.com/iotaledger/goshimmer/packages/identity"
"sync" "github.com/iotaledger/goshimmer/packages/settings"
) )
var ownId *identity.Identity var ownId *identity.Identity
......
...@@ -32,4 +32,3 @@ func TestBitmask(t *testing.T) { ...@@ -32,4 +32,3 @@ func TestBitmask(t *testing.T) {
t.Error("flag at pos 1 should not be set") t.Error("flag at pos 1 should not be set")
} }
} }
...@@ -2,9 +2,10 @@ package curl ...@@ -2,9 +2,10 @@ package curl
import ( import (
"fmt" "fmt"
"github.com/iotaledger/goshimmer/packages/ternary"
"strconv" "strconv"
"time" "time"
"github.com/iotaledger/goshimmer/packages/ternary"
) )
type HashRequest struct { type HashRequest struct {
......
package curl package curl
import ( import (
"github.com/iotaledger/goshimmer/packages/ternary"
"math" "math"
"github.com/iotaledger/goshimmer/packages/ternary"
) )
const ( const (
...@@ -14,7 +15,6 @@ var ( ...@@ -14,7 +15,6 @@ var (
TRUTH_TABLE = ternary.Trits{1, 0, -1, 2, 1, -1, 0, 2, -1, 1, 0} TRUTH_TABLE = ternary.Trits{1, 0, -1, 2, 1, -1, 0, 2, -1, 1, 0}
) )
type Hash interface { type Hash interface {
Initialize() Initialize()
InitializeCurl(trits *[]int8, length int, rounds int) InitializeCurl(trits *[]int8, length int, rounds int)
...@@ -23,7 +23,6 @@ type Hash interface { ...@@ -23,7 +23,6 @@ type Hash interface {
Squeeze(resp []int8, offset int, length int) []int Squeeze(resp []int8, offset int, length int) []int
} }
type Curl struct { type Curl struct {
Hash Hash
state ternary.Trits state ternary.Trits
......
package database package database
import ( import (
"github.com/dgraph-io/badger"
"os" "os"
"path/filepath" "path/filepath"
"sync" "sync"
"github.com/dgraph-io/badger"
) )
var databasesByName = make(map[string]*databaseImpl) var databasesByName = make(map[string]*databaseImpl)
......
package datastructure package datastructure
import ( import (
"github.com/iotaledger/goshimmer/packages/errors"
"sync" "sync"
"github.com/iotaledger/goshimmer/packages/errors"
) )
type DoublyLinkedList struct { type DoublyLinkedList struct {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment