refactor: remove NoCopy struct; move RefCounter struct to goutils and update usage; remove internal/utils entirely

This commit is contained in:
yusing
2026-01-07 17:17:12 +08:00
parent 04dd963535
commit cc406921cb
8 changed files with 4 additions and 152 deletions

View File

@@ -36,13 +36,10 @@ import (
"github.com/yusing/godoxy/internal/route/rules"
rulepresets "github.com/yusing/godoxy/internal/route/rules/presets"
route "github.com/yusing/godoxy/internal/route/types"
"github.com/yusing/godoxy/internal/utils"
)
type (
Route struct {
_ utils.NoCopy
Alias string `json:"alias"`
Scheme route.Scheme `json:"scheme,omitempty" swaggertype:"string" enums:"http,https,h2c,tcp,udp,fileserver"`
Host string `json:"host,omitempty"`