"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files
Go azure-blobazure-blob-storageazure-filesbackblaze-b2cloud-storagedropboxencryptionftpfuse-filesystemgogolanggoogle-cloud-storagegoogle-driveonedriveopenstack-swiftrclones3sftpsyncwebdav
build: replace interface{} by the 'any' type added in go1.18
Nick Craig-Wood379dffa61c33
diff --git a/backend/doi/doi.go b/backend/doi/doi.goindex 00e98c494..a99bf56dc 100644--- a/backend/doi/doi.go+++ b/backend/doi/doi.go@@ -598,7 +598,7 @@ It doesn't return anything.// The result should be capable of being JSON encoded// If it is a string or a []string it will be shown to the user// otherwise it will be JSON encoded and shown to the user like that-func (f *Fs) Command(ctx context.Context, name string, arg []string, opt map[string]string) (out interface{}, err error) {+func (f *Fs) Command(ctx context.Context, name string, arg []string, opt map[string]string) (out any, err error) {switch name {case "metadata":return f.ShowMetadata(ctx)@@ -625,7 +625,7 @@ func (f *Fs) Command(ctx context.Context, name string, arg []string, opt map[str}// ShowMetadata returns some metadata about the corresponding DOI-func (f *Fs) ShowMetadata(ctx context.Context) (metadata interface{}, err error) {+func (f *Fs) ShowMetadata(ctx context.Context) (metadata any, err error) {doiURL, err := url.Parse("https://doi.org/" + f.opt.Doi)if err != nil {return nil, errdiff --git a/backend/filelu/api/types.go b/backend/filelu/api/types.goindex 8c506e810..c92d23d0a 100644--- a/backend/filelu/api/types.go+++ b/backend/filelu/api/types.go@@ -8,7 +8,7 @@ type CreateFolderResponse struct {Status int `json:"status"`Msg string `json:"msg"`Result struct {- FldID interface{} `json:"fld_id"`+ FldID any `json:"fld_id"`} `json:"result"`}diff --git a/fs/config/configstruct/configstruct.go b/fs/config/configstruct/configstruct.goindex f90806a2d..ba421f7f2 100644--- a/fs/config/configstruct/configstruct.go+++ b/fs/config/configstruct/configstruct.go@@ -261,7 +261,7 @@ func Set(config configmap.Getter, opt any) (err error) {}// setIfSameType set aPtr with b if they are the same type or returns false.-func setIfSameType(aPtr interface{}, b interface{}) bool {+func setIfSameType(aPtr any, b any) bool {aVal := reflect.ValueOf(aPtr).Elem()bVal := reflect.ValueOf(b)