refactor: cast包替换

This commit is contained in:
meilin.huang
2025-06-27 12:17:45 +08:00
parent 54d3a5b368
commit f7480f3bac
60 changed files with 91 additions and 94 deletions

View File

@@ -5,7 +5,7 @@ import (
"mayfly-go/pkg/utils/anyx"
"time"
"github.com/may-fly/cast"
"github.com/spf13/cast"
)
type Cache interface {

View File

@@ -4,7 +4,7 @@ import (
"strings"
"time"
"github.com/may-fly/cast"
"github.com/spf13/cast"
)
type LocalCache struct {

View File

@@ -14,7 +14,7 @@ import (
"os"
"time"
"github.com/may-fly/cast"
"github.com/spf13/cast"
)
// 默认超时

View File

@@ -5,7 +5,7 @@ import (
"encoding/json"
"mayfly-go/pkg/utils/anyx"
"github.com/may-fly/cast"
"github.com/spf13/cast"
)
// M is a shortcut for map[string]any

View File

@@ -6,7 +6,7 @@ import (
"strings"
"testing"
"github.com/may-fly/cast"
"github.com/spf13/cast"
)
func TestTemplateParse(t *testing.T) {