mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-11-03 16:00:25 +08:00
refactor: cast包替换
This commit is contained in:
2
server/pkg/cache/cache.go
vendored
2
server/pkg/cache/cache.go
vendored
@@ -5,7 +5,7 @@ import (
|
||||
"mayfly-go/pkg/utils/anyx"
|
||||
"time"
|
||||
|
||||
"github.com/may-fly/cast"
|
||||
"github.com/spf13/cast"
|
||||
)
|
||||
|
||||
type Cache interface {
|
||||
|
||||
2
server/pkg/cache/local.go
vendored
2
server/pkg/cache/local.go
vendored
@@ -4,7 +4,7 @@ import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/may-fly/cast"
|
||||
"github.com/spf13/cast"
|
||||
)
|
||||
|
||||
type LocalCache struct {
|
||||
|
||||
@@ -14,7 +14,7 @@ import (
|
||||
"os"
|
||||
"time"
|
||||
|
||||
"github.com/may-fly/cast"
|
||||
"github.com/spf13/cast"
|
||||
)
|
||||
|
||||
// 默认超时
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -6,7 +6,7 @@ import (
|
||||
"strings"
|
||||
"testing"
|
||||
|
||||
"github.com/may-fly/cast"
|
||||
"github.com/spf13/cast"
|
||||
)
|
||||
|
||||
func TestTemplateParse(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user