Browse Source

Rearrange imports per PR comments.

cameronts 3 years ago
parent
commit
82d8d4ff1e
2 changed files with 6 additions and 5 deletions
  1. 5 4
      logic/util.go
  2. 1 1
      netclient/functions/mqpublish.go

+ 5 - 4
logic/util.go

@@ -6,16 +6,17 @@ import (
 	"encoding/base64"
 	"encoding/base64"
 	"encoding/json"
 	"encoding/json"
 	"fmt"
 	"fmt"
-	"github.com/gravitl/netmaker/database"
-	"github.com/gravitl/netmaker/logger"
-	"github.com/gravitl/netmaker/models"
-	"github.com/gravitl/netmaker/netclient/ncutils"
 	"math/big"
 	"math/big"
 	"math/rand"
 	"math/rand"
 	"net"
 	"net"
 	"os"
 	"os"
 	"strings"
 	"strings"
 	"time"
 	"time"
+
+	"github.com/gravitl/netmaker/database"
+	"github.com/gravitl/netmaker/logger"
+	"github.com/gravitl/netmaker/models"
+	"github.com/gravitl/netmaker/netclient/ncutils"
 )
 )
 
 
 // IsBase64 - checks if a string is in base64 format
 // IsBase64 - checks if a string is in base64 format

+ 1 - 1
netclient/functions/mqpublish.go

@@ -5,7 +5,6 @@ import (
 	"encoding/json"
 	"encoding/json"
 	"errors"
 	"errors"
 	"fmt"
 	"fmt"
-	"github.com/gravitl/netmaker/models"
 	"net"
 	"net"
 	"os"
 	"os"
 	"strconv"
 	"strconv"
@@ -14,6 +13,7 @@ import (
 
 
 	"github.com/cloverstd/tcping/ping"
 	"github.com/cloverstd/tcping/ping"
 	"github.com/gravitl/netmaker/logger"
 	"github.com/gravitl/netmaker/logger"
+	"github.com/gravitl/netmaker/models"
 	"github.com/gravitl/netmaker/netclient/auth"
 	"github.com/gravitl/netmaker/netclient/auth"
 	"github.com/gravitl/netmaker/netclient/config"
 	"github.com/gravitl/netmaker/netclient/config"
 	"github.com/gravitl/netmaker/netclient/ncutils"
 	"github.com/gravitl/netmaker/netclient/ncutils"