Skip to content

Commit

Permalink
goimports
Browse files Browse the repository at this point in the history
  • Loading branch information
dennwc committed Dec 23, 2017
1 parent f3e814f commit b0f92e1
Show file tree
Hide file tree
Showing 67 changed files with 89 additions and 57 deletions.
2 changes: 1 addition & 1 deletion examples/hello_bolt/main.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package main

import (
"context"
"fmt"
"io/ioutil"
"log"
"os"

"context"
"github.com/cayleygraph/cayley"
"github.com/cayleygraph/cayley/graph"
_ "github.com/cayleygraph/cayley/graph/kv/bolt"
Expand Down
3 changes: 2 additions & 1 deletion examples/hello_schema/main.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package main

import (
"context"
"fmt"
"io/ioutil"
"log"
Expand All @@ -13,8 +14,8 @@ import (
"github.com/cayleygraph/cayley/quad"
"github.com/cayleygraph/cayley/schema"
"github.com/cayleygraph/cayley/voc"

// Import RDF vocabulary definitions to be able to expand IRIs like rdf:label.
"context"
_ "github.com/cayleygraph/cayley/voc/core"
)

Expand Down
2 changes: 1 addition & 1 deletion graph/bolt/bolt_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@
package bolt

import (
"context"
"io/ioutil"
"os"
"reflect"
"testing"

"context"
"github.com/cayleygraph/cayley/graph"
"github.com/cayleygraph/cayley/graph/graphtest"
"github.com/cayleygraph/cayley/graph/graphtest/testutil"
Expand Down
2 changes: 1 addition & 1 deletion graph/bolt/iterator.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ package bolt

import (
"bytes"
"context"
"errors"
"fmt"

"github.com/boltdb/bolt"
"github.com/cayleygraph/cayley/clog"

"context"
"github.com/cayleygraph/cayley/graph"
"github.com/cayleygraph/cayley/graph/iterator"
"github.com/cayleygraph/cayley/quad"
Expand Down
1 change: 1 addition & 0 deletions graph/bolt/quadstore_iterator_optimize.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ package bolt

import (
"context"

"github.com/cayleygraph/cayley/graph"
"github.com/cayleygraph/cayley/graph/iterator"
)
Expand Down
4 changes: 2 additions & 2 deletions graph/gaedatastore/iterator.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@
package gaedatastore

import (
"context"
"fmt"

"github.com/cayleygraph/cayley/clog"
"github.com/cayleygraph/cayley/graph"
"github.com/cayleygraph/cayley/graph/iterator"
"github.com/cayleygraph/cayley/quad"

"context"
"github.com/cayleygraph/cayley/clog"
"google.golang.org/appengine/datastore"
)

Expand Down
2 changes: 1 addition & 1 deletion graph/graphtest/graphtest.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package graphtest

import (
"context"
"sort"
"testing"
"time"

"context"
"github.com/cayleygraph/cayley/graph"
"github.com/cayleygraph/cayley/graph/graphtest/testutil"
"github.com/cayleygraph/cayley/graph/iterator"
Expand Down
3 changes: 2 additions & 1 deletion graph/http/httpgraph.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package httpgraph

import (
"github.com/cayleygraph/cayley/graph"
"net/http"

"github.com/cayleygraph/cayley/graph"
)

type QuadStore interface {
Expand Down
1 change: 1 addition & 0 deletions graph/iterator/and.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ package iterator

import (
"context"

"github.com/cayleygraph/cayley/graph"
)

Expand Down
2 changes: 1 addition & 1 deletion graph/iterator/and_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
package iterator_test

import (
"context"
"errors"
"testing"

"context"
"github.com/cayleygraph/cayley/graph"
"github.com/cayleygraph/cayley/graph/graphmock"
. "github.com/cayleygraph/cayley/graph/iterator"
Expand Down
1 change: 1 addition & 0 deletions graph/iterator/count.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package iterator

import (
"context"

"github.com/cayleygraph/cayley/graph"
"github.com/cayleygraph/cayley/quad"
)
Expand Down
3 changes: 2 additions & 1 deletion graph/iterator/count_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ package iterator

import (
"context"
"testing"

"github.com/cayleygraph/cayley/graph"
"github.com/cayleygraph/cayley/quad"
"github.com/stretchr/testify/require"
"testing"
)

func TestCount(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion graph/iterator/fixed.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ package iterator
// opaque Quad store value, may not answer to ==.

import (
"context"
"fmt"

"context"
"github.com/cayleygraph/cayley/graph"
)

Expand Down
4 changes: 2 additions & 2 deletions graph/iterator/hasa.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ package iterator
// Alternatively, can be seen as the dual of the LinksTo iterator.

import (
"github.com/cayleygraph/cayley/clog"

"context"
"fmt"

"github.com/cayleygraph/cayley/clog"
"github.com/cayleygraph/cayley/graph"
"github.com/cayleygraph/cayley/quad"
)
Expand Down
2 changes: 1 addition & 1 deletion graph/iterator/hasa_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
package iterator_test

import (
"context"
"errors"
"testing"

"context"
. "github.com/cayleygraph/cayley/graph/iterator"
"github.com/cayleygraph/cayley/quad"
)
Expand Down
4 changes: 2 additions & 2 deletions graph/iterator/iterator.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ package iterator
// Define the general iterator interface.

import (
"sync/atomic"

"context"
"fmt"
"sync/atomic"

"github.com/cayleygraph/cayley/graph"
)

Expand Down
1 change: 1 addition & 0 deletions graph/iterator/iterator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package iterator_test

import (
"context"

"github.com/cayleygraph/cayley/graph"
. "github.com/cayleygraph/cayley/graph/iterator"
)
Expand Down
1 change: 1 addition & 0 deletions graph/iterator/limit.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package iterator
import (
"context"
"fmt"

"github.com/cayleygraph/cayley/graph"
)

Expand Down
2 changes: 1 addition & 1 deletion graph/iterator/limit_test.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package iterator_test

import (
"context"
"reflect"
"testing"

"context"
. "github.com/cayleygraph/cayley/graph/iterator"
)

Expand Down
1 change: 1 addition & 0 deletions graph/iterator/linksto.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ package iterator
import (
"context"
"fmt"

"github.com/cayleygraph/cayley/graph"
"github.com/cayleygraph/cayley/quad"
)
Expand Down
2 changes: 1 addition & 1 deletion graph/iterator/linksto_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
package iterator_test

import (
"context"
"testing"

"context"
"github.com/cayleygraph/cayley/graph/graphmock"
. "github.com/cayleygraph/cayley/graph/iterator"
"github.com/cayleygraph/cayley/quad"
Expand Down
4 changes: 2 additions & 2 deletions graph/iterator/materialize.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ package iterator
// A simple iterator that, when first called Contains() or Next() upon, materializes the whole subiterator, stores it locally, and responds. Essentially a cache.

import (
"github.com/cayleygraph/cayley/clog"

"context"

"github.com/cayleygraph/cayley/clog"
"github.com/cayleygraph/cayley/graph"
)

Expand Down
2 changes: 1 addition & 1 deletion graph/iterator/materialize_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
package iterator_test

import (
"context"
"errors"
"testing"

"context"
. "github.com/cayleygraph/cayley/graph/iterator"
)

Expand Down
1 change: 1 addition & 0 deletions graph/iterator/not.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package iterator

import (
"context"

"github.com/cayleygraph/cayley/graph"
)

Expand Down
2 changes: 1 addition & 1 deletion graph/iterator/not_test.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package iterator_test

import (
"context"
"errors"
"reflect"
"testing"

"context"
. "github.com/cayleygraph/cayley/graph/iterator"
)

Expand Down
1 change: 1 addition & 0 deletions graph/iterator/optional.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ package iterator

import (
"context"

"github.com/cayleygraph/cayley/clog"
"github.com/cayleygraph/cayley/graph"
)
Expand Down
1 change: 1 addition & 0 deletions graph/iterator/or.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ package iterator

import (
"context"

"github.com/cayleygraph/cayley/graph"
)

Expand Down
2 changes: 1 addition & 1 deletion graph/iterator/or_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
package iterator_test

import (
"context"
"errors"
"reflect"
"testing"

"context"
"github.com/cayleygraph/cayley/graph"
. "github.com/cayleygraph/cayley/graph/iterator"
)
Expand Down
1 change: 1 addition & 0 deletions graph/iterator/query_shape.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ package iterator

import (
"context"

"github.com/cayleygraph/cayley/graph"
"github.com/cayleygraph/cayley/quad"
)
Expand Down
2 changes: 1 addition & 1 deletion graph/iterator/recursive.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package iterator

import (
"context"
"math"

"context"
"github.com/cayleygraph/cayley/graph"
"github.com/cayleygraph/cayley/quad"
)
Expand Down
2 changes: 1 addition & 1 deletion graph/iterator/recursive_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
package iterator_test

import (
"context"
"reflect"
"sort"
"testing"

"context"
"github.com/cayleygraph/cayley/graph"
"github.com/cayleygraph/cayley/graph/graphmock"
. "github.com/cayleygraph/cayley/graph/iterator"
Expand Down
4 changes: 2 additions & 2 deletions graph/iterator/regex.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
package iterator

import (
"regexp"

"context"
"fmt"
"regexp"

"github.com/cayleygraph/cayley/graph"
"github.com/cayleygraph/cayley/quad"
)
Expand Down
1 change: 1 addition & 0 deletions graph/iterator/skip.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package iterator
import (
"context"
"fmt"

"github.com/cayleygraph/cayley/graph"
)

Expand Down
2 changes: 1 addition & 1 deletion graph/iterator/skip_test.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package iterator_test

import (
"context"
"reflect"
"testing"

"context"
. "github.com/cayleygraph/cayley/graph/iterator"
)

Expand Down
1 change: 1 addition & 0 deletions graph/iterator/unique.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package iterator

import (
"context"

"github.com/cayleygraph/cayley/graph"
)

Expand Down
Loading

0 comments on commit b0f92e1

Please sign in to comment.