"golang.org/x/exp/slices" => "slices" and go fmt

This commit is contained in:
chrislu committed 2024-12-19 19:25:06 -08:00
1 parent a1a76ccb8c
commit ec155022e7
44 files changed
+70 -71

No files matched your search

+1 -1
View File
@@ -5,8 +5,8 @@ import (
"github.com/seaweedfs/seaweedfs/weed/glog"
"github.com/seaweedfs/seaweedfs/weed/storage"
"github.com/seaweedfs/seaweedfs/weed/storage/types"
"golang.org/x/exp/slices"
"path"
"slices"
)
type OnDiskCacheLayer struct {
+2 -2
View File
@@ -11,7 +11,7 @@ import (
var (
ConfigurationFileDirectory DirectoryValueType
loadSecurityConfigOnce sync.Once
loadSecurityConfigOnce sync.Once
)
type DirectoryValueType string
@@ -32,7 +32,7 @@ type Configuration interface {
SetDefault(key string, value interface{})
}
func LoadSecurityConfiguration(){
func LoadSecurityConfiguration() {
loadSecurityConfigOnce.Do(func() {
LoadConfiguration("security", false)
})
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"sync"
)
type node[T any]struct {
type node[T any] struct {
data T
next *node[T]
}
+1 -1
View File
@@ -2,8 +2,8 @@ package skiplist
import (
"github.com/seaweedfs/seaweedfs/weed/glog"
"golang.org/x/exp/slices"
"google.golang.org/protobuf/proto"
"slices"
"strings"
)