build: Apply goimports formatting to various files

The following files were not formatted as the output of goimports(1)
would create, causing the goimports linter to fail:

command/agent/resources_endpoint.go
nomad/resources_endpoint.go
nomad/resources_endpoint_test.go
This commit is contained in:
James Nugent
2017-08-14 11:51:47 +08:00
parent 2a0f267771
commit fda3868577
3 changed files with 6 additions and 3 deletions

View File

@@ -1,8 +1,9 @@
package agent
import (
"github.com/hashicorp/nomad/nomad/structs"
"net/http"
"github.com/hashicorp/nomad/nomad/structs"
)
// ResourceListRequest accepts a prefix and context and returns a list of matching

View File

@@ -2,6 +2,7 @@ package nomad
import (
"fmt"
"github.com/hashicorp/go-memdb"
"github.com/hashicorp/nomad/nomad/state"
"github.com/hashicorp/nomad/nomad/structs"

View File

@@ -1,13 +1,14 @@
package nomad
import (
"strconv"
"testing"
"github.com/hashicorp/net-rpc-msgpackrpc"
"github.com/hashicorp/nomad/nomad/mock"
"github.com/hashicorp/nomad/nomad/structs"
"github.com/hashicorp/nomad/testutil"
"github.com/stretchr/testify/assert"
"strconv"
"testing"
)
const jobIndex = 1000