cleanup go imports

Michael Muré created

Change summary

bug/operation_pack.go           | 1 +
bug/person.go                   | 1 +
commands/close.go               | 1 +
commands/commands.go            | 1 +
commands/comment.go             | 1 +
commands/label.go               | 3 ++-
commands/ls.go                  | 1 +
commands/new.go                 | 1 +
commands/open.go                | 1 +
commands/pull.go                | 3 ++-
commands/root.go                | 3 ++-
commands/show.go                | 3 ++-
commands/webui.go               | 9 +++++----
graphql/resolvers/bug.go        | 1 +
graphql/resolvers/operations.go | 3 ++-
graphql/resolvers/query.go      | 1 +
graphql/resolvers/repo.go       | 1 +
input/input.go                  | 5 +++--
repository/repo.go              | 3 ++-
repository/tree_entry.go        | 3 ++-
tests/bug_actions_test.go       | 7 ++++---
21 files changed, 37 insertions(+), 16 deletions(-)

Detailed changes

bug/operation_pack.go 🔗

@@ -3,6 +3,7 @@ package bug
 import (
 	"bytes"
 	"encoding/gob"
+
 	"github.com/MichaelMure/git-bug/repository"
 	"github.com/MichaelMure/git-bug/util"
 )

bug/person.go 🔗

@@ -2,6 +2,7 @@ package bug
 
 import (
 	"errors"
+
 	"github.com/MichaelMure/git-bug/repository"
 )
 

commands/close.go 🔗

@@ -2,6 +2,7 @@ package commands
 
 import (
 	"errors"
+
 	"github.com/MichaelMure/git-bug/bug"
 	"github.com/MichaelMure/git-bug/bug/operations"
 	"github.com/spf13/cobra"

commands/comment.go 🔗

@@ -3,6 +3,7 @@ package commands
 import (
 	"errors"
 	"fmt"
+
 	"github.com/MichaelMure/git-bug/bug"
 	"github.com/MichaelMure/git-bug/bug/operations"
 	"github.com/MichaelMure/git-bug/input"

commands/label.go 🔗

@@ -2,10 +2,11 @@ package commands
 
 import (
 	"errors"
+	"os"
+
 	"github.com/MichaelMure/git-bug/bug"
 	"github.com/MichaelMure/git-bug/bug/operations"
 	"github.com/spf13/cobra"
-	"os"
 )
 
 var labelRemove bool

commands/ls.go 🔗

@@ -2,6 +2,7 @@ package commands
 
 import (
 	"fmt"
+
 	"github.com/MichaelMure/git-bug/bug"
 	"github.com/MichaelMure/git-bug/util"
 	"github.com/spf13/cobra"

commands/new.go 🔗

@@ -2,6 +2,7 @@ package commands
 
 import (
 	"fmt"
+
 	"github.com/MichaelMure/git-bug/bug"
 	"github.com/MichaelMure/git-bug/bug/operations"
 	"github.com/MichaelMure/git-bug/input"

commands/open.go 🔗

@@ -2,6 +2,7 @@ package commands
 
 import (
 	"errors"
+
 	"github.com/MichaelMure/git-bug/bug"
 	"github.com/MichaelMure/git-bug/bug/operations"
 	"github.com/spf13/cobra"

commands/pull.go 🔗

@@ -2,9 +2,10 @@ package commands
 
 import (
 	"errors"
+	"os"
+
 	"github.com/MichaelMure/git-bug/bug"
 	"github.com/spf13/cobra"
-	"os"
 )
 
 func runPull(cmd *cobra.Command, args []string) error {

commands/root.go 🔗

@@ -2,10 +2,11 @@ package commands
 
 import (
 	"fmt"
+	"os"
+
 	"github.com/MichaelMure/git-bug/bug"
 	"github.com/MichaelMure/git-bug/repository"
 	"github.com/spf13/cobra"
-	"os"
 )
 
 // Will display "git bug"

commands/show.go 🔗

@@ -3,10 +3,11 @@ package commands
 import (
 	"errors"
 	"fmt"
+	"strings"
+
 	"github.com/MichaelMure/git-bug/bug"
 	"github.com/MichaelMure/git-bug/util"
 	"github.com/spf13/cobra"
-	"strings"
 )
 
 func runShowBug(cmd *cobra.Command, args []string) error {

commands/webui.go 🔗

@@ -4,6 +4,11 @@ import (
 	"bytes"
 	"encoding/json"
 	"fmt"
+	"io/ioutil"
+	"log"
+	"net/http"
+	"time"
+
 	"github.com/MichaelMure/git-bug/graphql"
 	"github.com/MichaelMure/git-bug/repository"
 	"github.com/MichaelMure/git-bug/util"
@@ -13,10 +18,6 @@ import (
 	"github.com/skratchdot/open-golang/open"
 	"github.com/spf13/cobra"
 	"github.com/vektah/gqlgen/handler"
-	"io/ioutil"
-	"log"
-	"net/http"
-	"time"
 )
 
 var port int

graphql/resolvers/bug.go 🔗

@@ -2,6 +2,7 @@ package resolvers
 
 import (
 	"context"
+
 	"github.com/MichaelMure/git-bug/bug"
 	"github.com/MichaelMure/git-bug/graphql/connections"
 	"github.com/MichaelMure/git-bug/graphql/models"

graphql/resolvers/operations.go 🔗

@@ -3,10 +3,11 @@ package resolvers
 import (
 	"context"
 	"fmt"
+	"time"
+
 	"github.com/MichaelMure/git-bug/bug"
 	"github.com/MichaelMure/git-bug/bug/operations"
 	"github.com/MichaelMure/git-bug/graphql/models"
-	"time"
 )
 
 type addCommentOperationResolver struct{}

graphql/resolvers/query.go 🔗

@@ -2,6 +2,7 @@ package resolvers
 
 import (
 	"context"
+
 	"github.com/MichaelMure/git-bug/cache"
 	"github.com/MichaelMure/git-bug/graphql/models"
 )

graphql/resolvers/repo.go 🔗

@@ -2,6 +2,7 @@ package resolvers
 
 import (
 	"context"
+
 	"github.com/MichaelMure/git-bug/bug"
 	"github.com/MichaelMure/git-bug/graphql/connections"
 	"github.com/MichaelMure/git-bug/graphql/models"

input/input.go 🔗

@@ -6,12 +6,13 @@ import (
 	"bufio"
 	"bytes"
 	"fmt"
-	"github.com/MichaelMure/git-bug/repository"
-	"github.com/pkg/errors"
 	"io/ioutil"
 	"os"
 	"os/exec"
 	"strings"
+
+	"github.com/MichaelMure/git-bug/repository"
+	"github.com/pkg/errors"
 )
 
 const messageFilename = "BUG_MESSAGE_EDITMSG"

repository/repo.go 🔗

@@ -3,8 +3,9 @@ package repository
 
 import (
 	"bytes"
-	"github.com/MichaelMure/git-bug/util"
 	"strings"
+
+	"github.com/MichaelMure/git-bug/util"
 )
 
 // Repo represents a source code repository.

repository/tree_entry.go 🔗

@@ -2,8 +2,9 @@ package repository
 
 import (
 	"fmt"
-	"github.com/MichaelMure/git-bug/util"
 	"strings"
+
+	"github.com/MichaelMure/git-bug/util"
 )
 
 type TreeEntry struct {

tests/bug_actions_test.go 🔗

@@ -2,13 +2,14 @@ package tests
 
 import (
 	"fmt"
-	"github.com/MichaelMure/git-bug/bug"
-	"github.com/MichaelMure/git-bug/bug/operations"
-	"github.com/MichaelMure/git-bug/repository"
 	"io/ioutil"
 	"log"
 	"os"
 	"testing"
+
+	"github.com/MichaelMure/git-bug/bug"
+	"github.com/MichaelMure/git-bug/bug/operations"
+	"github.com/MichaelMure/git-bug/repository"
 )
 
 func createRepo(bare bool) *repository.GitRepo {