organize imports with gopls format

This commit is contained in:
Jakob Schrettenbrunner
2021-01-10 01:22:39 +00:00
parent 948d927eb9
commit 648072436f
48 changed files with 175 additions and 127 deletions

View File

@@ -1,9 +1,10 @@
package cmd
import (
"github.com/pterodactyl/wings/config"
"os"
"path/filepath"
"github.com/pterodactyl/wings/config"
)
// We've gone through a couple of iterations of where the configuration is stored. This

View File

@@ -4,10 +4,6 @@ import (
"crypto/tls"
"encoding/json"
"fmt"
"github.com/AlecAivazis/survey/v2"
"github.com/AlecAivazis/survey/v2/terminal"
"github.com/pterodactyl/wings/config"
"github.com/spf13/cobra"
"io/ioutil"
"net/http"
"net/url"
@@ -15,6 +11,11 @@ import (
"path"
"regexp"
"time"
"github.com/AlecAivazis/survey/v2"
"github.com/AlecAivazis/survey/v2/terminal"
"github.com/pterodactyl/wings/config"
"github.com/spf13/cobra"
)
var (

View File

@@ -5,7 +5,6 @@ import (
"encoding/json"
"errors"
"fmt"
"github.com/pterodactyl/wings/environment"
"io"
"io/ioutil"
"net/http"
@@ -16,6 +15,8 @@ import (
"strings"
"time"
"github.com/pterodactyl/wings/environment"
"github.com/AlecAivazis/survey/v2"
"github.com/AlecAivazis/survey/v2/terminal"
"github.com/docker/docker/api/types"

View File

@@ -2,8 +2,15 @@ package cmd
import (
"crypto/tls"
"emperror.dev/errors"
"fmt"
log2 "log"
"net/http"
"os"
"path"
"path/filepath"
"strings"
"emperror.dev/errors"
"github.com/NYTimes/logrotate"
"github.com/apex/log"
"github.com/apex/log/handlers/multi"
@@ -21,12 +28,6 @@ import (
"github.com/spf13/cobra"
"golang.org/x/crypto/acme"
"golang.org/x/crypto/acme/autocert"
log2 "log"
"net/http"
"os"
"path"
"path/filepath"
"strings"
)
var (