fix: 移除 goimports local-prefixes 配置 - 解决导入顺序问题

This commit is contained in:
2026-04-20 10:18:00 +08:00
parent 422e6b4147
commit d54fe367ab
4 changed files with 17 additions and 17 deletions
-1
View File
@@ -1,6 +1,5 @@
linters-settings: linters-settings:
goimports: goimports:
local-prefixes: next-terminal
linters: linters:
disable-all: true disable-all: true
+11 -11
View File
@@ -1,25 +1,25 @@
package service package service
import ( import (
"context" "next-terminal/server/common"
"encoding/base64"
"encoding/json"
"fmt"
"golang.org/x/net/proxy"
"net"
"next-terminal/server/common/maps" "next-terminal/server/common/maps"
"next-terminal/server/common/nt" "next-terminal/server/common/nt"
"strconv"
"strings"
"time"
"next-terminal/server/common"
"next-terminal/server/config" "next-terminal/server/config"
"next-terminal/server/env" "next-terminal/server/env"
"next-terminal/server/model" "next-terminal/server/model"
"next-terminal/server/repository" "next-terminal/server/repository"
"next-terminal/server/utils" "next-terminal/server/utils"
"context"
"encoding/base64"
"encoding/json"
"fmt"
"net"
"strconv"
"strings"
"time"
"golang.org/x/net/proxy"
"gorm.io/gorm" "gorm.io/gorm"
) )
+2 -1
View File
@@ -1,10 +1,11 @@
package service package service
import ( import (
"context"
"next-terminal/server/common/nt" "next-terminal/server/common/nt"
"next-terminal/server/env" "next-terminal/server/env"
"context"
"gorm.io/gorm" "gorm.io/gorm"
) )
+4 -4
View File
@@ -1,16 +1,16 @@
package service package service
import ( import (
"context"
"crypto/md5"
"fmt"
"next-terminal/server/common/nt" "next-terminal/server/common/nt"
"next-terminal/server/env" "next-terminal/server/env"
"next-terminal/server/model" "next-terminal/server/model"
"next-terminal/server/repository" "next-terminal/server/repository"
"next-terminal/server/utils" "next-terminal/server/utils"
"context"
"crypto/md5"
"fmt"
"gorm.io/gorm" "gorm.io/gorm"
) )