refactor(pkg): merge pkg/utils into pkg/util

Consolidate pure helper packages under pkg/util and update imports.
This commit is contained in:
ryan
2026-07-24 15:45:10 +08:00
parent 33a1c32cf8
commit d99c5b7c43
14 changed files with 19 additions and 19 deletions
+2 -2
View File
@@ -17,7 +17,7 @@ import (
ofws "github.com/Rain-kl/Wavelet/internal/apps/openflare/websocket"
"github.com/Rain-kl/Wavelet/internal/model"
"github.com/Rain-kl/Wavelet/pkg/utils"
"github.com/Rain-kl/Wavelet/pkg/util"
)
const (
@@ -301,7 +301,7 @@ func isVersionNewer(current string, latest string) bool {
}
func compareVersions(local, remote string) int {
return utils.CompareVersions(local, remote)
return util.CompareVersions(local, remote)
}
func fetchLatestGitHubRelease(ctx context.Context, repo string, channel releaseChannel) (*githubReleaseResponse, error) {