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

This commit is contained in:
chrislu
2024-12-19 19:23:27 -08:00
parent a1a76ccb8c
commit ec155022e7
44 changed files with 70 additions and 71 deletions

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 {

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)
})

View File

@@ -4,7 +4,7 @@ import (
"sync"
)
type node[T any]struct {
type node[T any] struct {
data T
next *node[T]
}

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"
)