"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: add package comments to silence revive linter
albertony555def2da7f4
diff --git a/backend/alias/alias.go b/backend/alias/alias.goindex 33ba5d664..92dda17bf 100644--- a/backend/alias/alias.go+++ b/backend/alias/alias.go@@ -1,3 +1,4 @@+// Package alias implements a virtual provider to rename existing remotes.package aliasimport (diff --git a/backend/all/all.go b/backend/all/all.goindex dc17911e4..5dae4d37d 100644--- a/backend/all/all.go+++ b/backend/all/all.go@@ -1,3 +1,4 @@+// Package all imports all the backendspackage allimport (diff --git a/backend/azureblob/azureblob.go b/backend/azureblob/azureblob.goindex edb863070..0db359222 100644--- a/backend/azureblob/azureblob.go+++ b/backend/azureblob/azureblob.go@@ -1,8 +1,7 @@-// Package azureblob provides an interface to the Microsoft Azure blob object storage system-//go:build !plan9 && !solaris && !js// +build !plan9,!solaris,!js+// Package azureblob provides an interface to the Microsoft Azure blob object storage systempackage azureblobimport (diff --git a/backend/b2/api/types.go b/backend/b2/api/types.goindex e139dc8c1..5089db242 100644--- a/backend/b2/api/types.go+++ b/backend/b2/api/types.go@@ -1,3 +1,4 @@+// Package api provides types used by the Backblaze B2 API.package apiimport (diff --git a/backend/b2/b2.go b/backend/b2/b2.goindex 6fd77b6a0..52794d802 100644--- a/backend/b2/b2.go+++ b/backend/b2/b2.go@@ -1,4 +1,4 @@-// Package b2 provides an interface to the Backblaze B2 object storage system+// Package b2 provides an interface to the Backblaze B2 object storage system.package b2// FIXME should we remove sha1 checks from here as rclone now supportsdiff --git a/backend/cache/cache.go b/backend/cache/cache.goindex 1c75aea4a..5c4e5dc87 100644--- a/backend/cache/cache.go+++ b/backend/cache/cache.go@@ -1,6 +1,7 @@//go:build !plan9 && !js// +build !plan9,!js+// Package cache implements a virtual provider to cache existing remotes.package cacheimport (diff --git a/backend/fichier/fichier.go b/backend/fichier/fichier.goindex 454e391ff..e6c053051 100644--- a/backend/fichier/fichier.go+++ b/backend/fichier/fichier.go@@ -1,3 +1,4 @@+// Package fichier provides an interface to the 1Fichier storage system.package fichierimport (diff --git a/backend/googlephotos/api/types.go b/backend/googlephotos/api/types.goindex d26cfc714..9b7aa79f6 100644--- a/backend/googlephotos/api/types.go+++ b/backend/googlephotos/api/types.go@@ -1,3 +1,4 @@+// Package api provides types used by the Google Photos API.package apiimport (diff --git a/backend/hdfs/hdfs.go b/backend/hdfs/hdfs.goindex 234344ece..c07c0d7e2 100644--- a/backend/hdfs/hdfs.go+++ b/backend/hdfs/hdfs.go@@ -1,6 +1,7 @@//go:build !plan9// +build !plan9+// Package hdfs provides an interface to the HDFS storage system.package hdfsimport (diff --git a/backend/hidrive/hidrivehash/internal/internal.go b/backend/hidrive/hidrivehash/internal/internal.goindex f1596a9e6..261233c0d 100644--- a/backend/hidrive/hidrivehash/internal/internal.go+++ b/backend/hidrive/hidrivehash/internal/internal.go@@ -1,3 +1,4 @@+// Package internal provides utilities for HiDrive.package internalimport (diff --git a/backend/jottacloud/api/types.go b/backend/jottacloud/api/types.goindex 91e0c3095..8daf0f7ad 100644--- a/backend/jottacloud/api/types.go+++ b/backend/jottacloud/api/types.go@@ -1,3 +1,4 @@+// Package api provides types used by the Jottacloud API.package apiimport (diff --git a/backend/jottacloud/jottacloud.go b/backend/jottacloud/jottacloud.goindex 0044c7f79..001787451 100644--- a/backend/jottacloud/jottacloud.go+++ b/backend/jottacloud/jottacloud.go@@ -1,3 +1,4 @@+// Package jottacloud provides an interface to the Jottacloud storage system.package jottacloudimport (diff --git a/backend/koofr/koofr.go b/backend/koofr/koofr.goindex f893b898b..642ab79fe 100644--- a/backend/koofr/koofr.go+++ b/backend/koofr/koofr.go@@ -1,3 +1,4 @@+// Package koofr provides an interface to the Koofr storage system.package koofrimport (diff --git a/backend/mailru/api/m1.go b/backend/mailru/api/m1.goindex 039b1e104..c9d3e9c9f 100644--- a/backend/mailru/api/m1.go+++ b/backend/mailru/api/m1.go@@ -1,3 +1,4 @@+// Package api provides types used by the Mail.ru API.package apiimport (diff --git a/backend/mailru/mailru.go b/backend/mailru/mailru.goindex bd527e8e2..95507996c 100644--- a/backend/mailru/mailru.go+++ b/backend/mailru/mailru.go@@ -1,3 +1,4 @@+// Package mailru provides an interface to the Mail.ru Cloud storage system.package mailruimport (diff --git a/backend/onedrive/api/types.go b/backend/onedrive/api/types.goindex 12dca863b..bfde10161 100644--- a/backend/onedrive/api/types.go+++ b/backend/onedrive/api/types.go@@ -1,5 +1,4 @@-// Types passed and returned to and from the API-+// Package api provides types used by the OneDrive API.package apiimport (diff --git a/backend/opendrive/opendrive.go b/backend/opendrive/opendrive.goindex 35e1871c3..037372e13 100644--- a/backend/opendrive/opendrive.go+++ b/backend/opendrive/opendrive.go@@ -1,3 +1,4 @@+// Package opendrive provides an interface to the OpenDrive storage system.package opendriveimport (diff --git a/backend/putio/putio.go b/backend/putio/putio.goindex 766a99b77..692364166 100644--- a/backend/putio/putio.go+++ b/backend/putio/putio.go@@ -1,3 +1,4 @@+// Package putio provides an interface to the put.io storage system.package putioimport (diff --git a/backend/qingstor/qingstor.go b/backend/qingstor/qingstor.goindex cd4880358..a3d0bd639 100644--- a/backend/qingstor/qingstor.go+++ b/backend/qingstor/qingstor.go@@ -1,9 +1,8 @@-// Package qingstor provides an interface to QingStor object storage-// Home: https://www.qingcloud.com/-//go:build !plan9 && !js// +build !plan9,!js+// Package qingstor provides an interface to QingStor object storage+// Home: https://www.qingcloud.com/package qingstorimport (diff --git a/backend/seafile/api/types.go b/backend/seafile/api/types.goindex 9fb95c0cf..d6224709f 100644--- a/backend/seafile/api/types.go+++ b/backend/seafile/api/types.go@@ -1,3 +1,4 @@+// Package api provides types used by the Seafile API.package api// Some api objects are duplicated with only small differences,diff --git a/backend/seafile/seafile.go b/backend/seafile/seafile.goindex 00457676c..1413544ee 100644--- a/backend/seafile/seafile.go+++ b/backend/seafile/seafile.go@@ -1,3 +1,4 @@+// Package seafile provides an interface to the Seafile storage system.package seafileimport (diff --git a/backend/sftp/sftp.go b/backend/sftp/sftp.goindex 6a4259542..1c160996c 100644--- a/backend/sftp/sftp.go+++ b/backend/sftp/sftp.go@@ -1,8 +1,7 @@-// Package sftp provides a filesystem interface using github.com/pkg/sftp-//go:build !plan9// +build !plan9+// Package sftp provides a filesystem interface using github.com/pkg/sftppackage sftpimport (diff --git a/backend/sia/api/types.go b/backend/sia/api/types.goindex ebec8961e..eb046ab22 100644--- a/backend/sia/api/types.go+++ b/backend/sia/api/types.go@@ -1,3 +1,4 @@+// Package api provides types used by the Sia API.package apiimport (diff --git a/backend/sia/sia.go b/backend/sia/sia.goindex 2a8235638..b86faae61 100644--- a/backend/sia/sia.go+++ b/backend/sia/sia.go@@ -1,3 +1,4 @@+// Package sia provides an interface to the Sia storage system.package siaimport (diff --git a/backend/union/policy/all.go b/backend/union/policy/all.goindex 1de36da2a..fe43654ff 100644--- a/backend/union/policy/all.go+++ b/backend/union/policy/all.go@@ -1,3 +1,4 @@+// Package policy provides utilities for the union implementation.package policyimport (diff --git a/backend/union/union.go b/backend/union/union.goindex 8bcbf66c9..7e10f06b8 100644--- a/backend/union/union.go+++ b/backend/union/union.go@@ -1,3 +1,4 @@+// Package union implements a virtual provider to join existing remotes.package unionimport (diff --git a/backend/union/upstream/upstream.go b/backend/union/upstream/upstream.goindex 7b9f44fd2..119eb7bb0 100644--- a/backend/union/upstream/upstream.go+++ b/backend/union/upstream/upstream.go@@ -1,3 +1,4 @@+// Package upstream provides utility functionality to union.package upstreamimport (diff --git a/backend/uptobox/api/types.go b/backend/uptobox/api/types.goindex 872a5cff0..4e842c8ab 100644--- a/backend/uptobox/api/types.go+++ b/backend/uptobox/api/types.go@@ -1,3 +1,4 @@+// Package api provides types used by the Uptobox API.package apiimport "fmt"diff --git a/backend/uptobox/uptobox.go b/backend/uptobox/uptobox.goindex 6bc5bd823..fb3bbd7db 100644--- a/backend/uptobox/uptobox.go+++ b/backend/uptobox/uptobox.go@@ -1,3 +1,4 @@+// Package uptobox provides an interface to the Uptobox storage system.package uptoboximport (diff --git a/backend/yandex/api/types.go b/backend/yandex/api/types.goindex 78d4c6850..614ced7d3 100644--- a/backend/yandex/api/types.go+++ b/backend/yandex/api/types.go@@ -1,3 +1,4 @@+// Package api provides types used by the Yandex API.package apiimport (diff --git a/backend/yandex/yandex.go b/backend/yandex/yandex.goindex 3d5bf53cc..a643a7771 100644--- a/backend/yandex/yandex.go+++ b/backend/yandex/yandex.go@@ -1,3 +1,4 @@+// Package yandex provides an interface to the Yandex storage system.package yandeximport (diff --git a/backend/zoho/api/types.go b/backend/zoho/api/types.goindex 43d8644ce..755c57b9b 100644--- a/backend/zoho/api/types.go+++ b/backend/zoho/api/types.go@@ -1,3 +1,4 @@+// Package api provides types used by the Zoho API.package apiimport (diff --git a/cmd/about/about.go b/cmd/about/about.goindex 46c1d6f66..967744b59 100644--- a/cmd/about/about.go+++ b/cmd/about/about.go@@ -1,3 +1,4 @@+// Package about provides the about command.package aboutimport (diff --git a/cmd/authorize/authorize.go b/cmd/authorize/authorize.goindex d3114c750..87dda815b 100644--- a/cmd/authorize/authorize.go+++ b/cmd/authorize/authorize.go@@ -1,3 +1,4 @@+// Package authorize provides the authorize command.package authorizeimport (diff --git a/cmd/backend/backend.go b/cmd/backend/backend.goindex 85b7e44bd..3199f8a5d 100644--- a/cmd/backend/backend.go+++ b/cmd/backend/backend.go@@ -1,3 +1,4 @@+// Package backend provides the backend command.package backendimport (diff --git a/cmd/cachestats/cachestats.go b/cmd/cachestats/cachestats.goindex 16a1398d3..7638db8f4 100644--- a/cmd/cachestats/cachestats.go+++ b/cmd/cachestats/cachestats.go@@ -1,6 +1,7 @@//go:build !plan9 && !js// +build !plan9,!js+// Package cachestats provides the cachestats command.package cachestatsimport (diff --git a/cmd/cat/cat.go b/cmd/cat/cat.goindex 4f90f0478..227ddb1f3 100644--- a/cmd/cat/cat.go+++ b/cmd/cat/cat.go@@ -1,3 +1,4 @@+// Package cat provides the cat command.package catimport (diff --git a/cmd/check/check.go b/cmd/check/check.goindex 886c36a58..3c126e176 100644--- a/cmd/check/check.go+++ b/cmd/check/check.go@@ -1,3 +1,4 @@+// Package check provides the check command.package checkimport (diff --git a/cmd/checksum/checksum.go b/cmd/checksum/checksum.goindex 1083e3800..c25aa143d 100644--- a/cmd/checksum/checksum.go+++ b/cmd/checksum/checksum.go@@ -1,3 +1,4 @@+// Package checksum provides the checksum command.package checksumimport (diff --git a/cmd/cleanup/cleanup.go b/cmd/cleanup/cleanup.goindex 549e3b420..e54577466 100644--- a/cmd/cleanup/cleanup.go+++ b/cmd/cleanup/cleanup.go@@ -1,3 +1,4 @@+// Package cleanup provides the cleanup command.package cleanupimport (diff --git a/cmd/cmount/mount.go b/cmd/cmount/mount.goindex 873adcaf0..c9893f2f7 100644--- a/cmd/cmount/mount.go+++ b/cmd/cmount/mount.go@@ -1,11 +1,10 @@-// Package cmount implements a FUSE mounting system for rclone remotes.-//-// This uses the cgo based cgofuse library-//go:build cmount && ((linux && cgo) || (darwin && cgo) || (freebsd && cgo) || windows)// +build cmount// +build linux,cgo darwin,cgo freebsd,cgo windows+// Package cmount implements a FUSE mounting system for rclone remotes.+//+// This uses the cgo based cgofuse librarypackage cmountimport (diff --git a/cmd/cmount/mount_brew.go b/cmd/cmount/mount_brew.goindex ec1b97881..964c0b234 100644--- a/cmd/cmount/mount_brew.go+++ b/cmd/cmount/mount_brew.go@@ -1,9 +1,10 @@-// Build for macos with the brew tag to handle the absence-// of fuse and print an appropriate error message-//go:build brew && darwin// +build brew,darwin+// Package cmount implements a FUSE mounting system for rclone remotes.+//+// Build for macos with the brew tag to handle the absence+// of fuse and print an appropriate error messagepackage cmountimport (diff --git a/cmd/cmount/mount_test.go b/cmd/cmount/mount_test.goindex 542c35b1b..7c9c852f6 100644--- a/cmd/cmount/mount_test.go+++ b/cmd/cmount/mount_test.go@@ -3,6 +3,8 @@// +build linux,cgo darwin,cgo freebsd,cgo windows// +build !race !windows+// Package cmount implements a FUSE mounting system for rclone remotes.+//// FIXME this doesn't work with the race detector under Windows either// hanging or producing lots of differences.diff --git a/cmd/cmount/mount_unsupported.go b/cmd/cmount/mount_unsupported.goindex 3b6761beb..375cec456 100644--- a/cmd/cmount/mount_unsupported.go+++ b/cmd/cmount/mount_unsupported.go@@ -1,10 +1,11 @@-// Build for cmount for unsupported platforms to stop go complaining-// about "no buildable Go source files "-//go:build !((linux && cgo && cmount) || (darwin && cgo && cmount) || (freebsd && cgo && cmount) || (windows && cmount))// +build !linux !cgo !cmount// +build !darwin !cgo !cmount// +build !freebsd !cgo !cmount// +build !windows !cmount+// Package cmount implements a FUSE mounting system for rclone remotes.+//+// Build for cmount for unsupported platforms to stop go complaining+// about "no buildable Go source files".package cmountdiff --git a/cmd/config/config.go b/cmd/config/config.goindex ed5700327..318685c7d 100644--- a/cmd/config/config.go+++ b/cmd/config/config.go@@ -1,3 +1,4 @@+// Package config provides the config command.package configimport (diff --git a/cmd/copy/copy.go b/cmd/copy/copy.goindex 33175e1f7..c6e42a70e 100644--- a/cmd/copy/copy.go+++ b/cmd/copy/copy.go@@ -1,3 +1,4 @@+// Package copy provides the copy command.package copyimport (diff --git a/cmd/copyto/copyto.go b/cmd/copyto/copyto.goindex 02d2af21e..85b54fa60 100644--- a/cmd/copyto/copyto.go+++ b/cmd/copyto/copyto.go@@ -1,3 +1,4 @@+// Package copyto provides the copyto command.package copytoimport (diff --git a/cmd/copyurl/copyurl.go b/cmd/copyurl/copyurl.goindex fc3cf38cc..a3c079b11 100644--- a/cmd/copyurl/copyurl.go+++ b/cmd/copyurl/copyurl.go@@ -1,3 +1,4 @@+// Package copyurl provides the copyurl command.package copyurlimport (diff --git a/cmd/cryptcheck/cryptcheck.go b/cmd/cryptcheck/cryptcheck.goindex ec0597da7..aab50ef06 100644--- a/cmd/cryptcheck/cryptcheck.go+++ b/cmd/cryptcheck/cryptcheck.go@@ -1,3 +1,4 @@+// Package cryptcheck provides the cryptcheck command.package cryptcheckimport (diff --git a/cmd/cryptdecode/cryptdecode.go b/cmd/cryptdecode/cryptdecode.goindex d36c70ca4..9c6178e9e 100644--- a/cmd/cryptdecode/cryptdecode.go+++ b/cmd/cryptdecode/cryptdecode.go@@ -1,3 +1,4 @@+// Package cryptdecode provides the cryptdecode command.package cryptdecodeimport (diff --git a/cmd/dedupe/dedupe.go b/cmd/dedupe/dedupe.goindex b43c4c279..94a136ca2 100644--- a/cmd/dedupe/dedupe.go+++ b/cmd/dedupe/dedupe.go@@ -1,3 +1,4 @@+// Package dedupe provides the dedupe command.package dedupeimport (diff --git a/cmd/delete/delete.go b/cmd/delete/delete.goindex a432dbe56..047c320af 100644--- a/cmd/delete/delete.go+++ b/cmd/delete/delete.go@@ -1,3 +1,4 @@+// Package delete provides the delete command.package deleteimport (diff --git a/cmd/deletefile/deletefile.go b/cmd/deletefile/deletefile.goindex 88750c75e..9d222771d 100644--- a/cmd/deletefile/deletefile.go+++ b/cmd/deletefile/deletefile.go@@ -1,3 +1,4 @@+// Package deletefile provides the deletefile command.package deletefileimport (diff --git a/cmd/genautocomplete/genautocomplete.go b/cmd/genautocomplete/genautocomplete.goindex 597113577..9502bbbc9 100644--- a/cmd/genautocomplete/genautocomplete.go+++ b/cmd/genautocomplete/genautocomplete.go@@ -1,3 +1,4 @@+// Package genautocomplete provides the genautocomplete command.package genautocompleteimport (diff --git a/cmd/gendocs/gendocs.go b/cmd/gendocs/gendocs.goindex 7a7ef3f46..e80b8a924 100644--- a/cmd/gendocs/gendocs.go+++ b/cmd/gendocs/gendocs.go@@ -1,3 +1,4 @@+// Package gendocs provides the gendocs command.package gendocsimport (diff --git a/cmd/hashsum/hashsum.go b/cmd/hashsum/hashsum.goindex 64dfde4ce..5655fdcf2 100644--- a/cmd/hashsum/hashsum.go+++ b/cmd/hashsum/hashsum.go@@ -1,3 +1,4 @@+// Package hashsum provides the hashsum command.package hashsumimport (diff --git a/cmd/link/link.go b/cmd/link/link.goindex 3367178c5..a0356cd33 100644--- a/cmd/link/link.go+++ b/cmd/link/link.go@@ -1,3 +1,4 @@+// Package link provides the link command.package linkimport (diff --git a/cmd/listremotes/listremotes.go b/cmd/listremotes/listremotes.goindex 908979a4f..bf7b697f2 100644--- a/cmd/listremotes/listremotes.go+++ b/cmd/listremotes/listremotes.go@@ -1,3 +1,4 @@+// Package ls provides the ls command.package lsimport (diff --git a/cmd/ls/ls.go b/cmd/ls/ls.goindex e08a2c21d..334b12f8e 100644--- a/cmd/ls/ls.go+++ b/cmd/ls/ls.go@@ -1,3 +1,4 @@+// Package ls provides the ls command.package lsimport (diff --git a/cmd/ls/lshelp/lshelp.go b/cmd/ls/lshelp/lshelp.goindex f4a678be2..897c22f1c 100644--- a/cmd/ls/lshelp/lshelp.go+++ b/cmd/ls/lshelp/lshelp.go@@ -1,3 +1,4 @@+// Package lshelp provides common help for list commands.package lshelpimport (diff --git a/cmd/lsd/lsd.go b/cmd/lsd/lsd.goindex bd723daad..8d79266fb 100644--- a/cmd/lsd/lsd.go+++ b/cmd/lsd/lsd.go@@ -1,3 +1,4 @@+// Package lsd provides the lsd command.package lsdimport (diff --git a/cmd/lsf/lsf.go b/cmd/lsf/lsf.goindex e370f930c..2651e90e7 100644--- a/cmd/lsf/lsf.go+++ b/cmd/lsf/lsf.go@@ -1,3 +1,4 @@+// Package lsf provides the lsf command.package lsfimport (diff --git a/cmd/lsjson/lsjson.go b/cmd/lsjson/lsjson.goindex 8e4e343da..eb30f8578 100644--- a/cmd/lsjson/lsjson.go+++ b/cmd/lsjson/lsjson.go@@ -1,3 +1,4 @@+// Package lsjson provides the lsjson command.package lsjsonimport (diff --git a/cmd/lsl/lsl.go b/cmd/lsl/lsl.goindex f2f40f7a7..f8108c5f7 100644--- a/cmd/lsl/lsl.go+++ b/cmd/lsl/lsl.go@@ -1,3 +1,4 @@+// Package lsl provides the lsl command.package lslimport (diff --git a/cmd/md5sum/md5sum.go b/cmd/md5sum/md5sum.goindex 665ae4467..09da8526f 100644--- a/cmd/md5sum/md5sum.go+++ b/cmd/md5sum/md5sum.go@@ -1,3 +1,4 @@+// Package md5sum provides the md5sum command.package md5sumimport (diff --git a/cmd/mkdir/mkdir.go b/cmd/mkdir/mkdir.goindex 33fa33667..3c99180fe 100644--- a/cmd/mkdir/mkdir.go+++ b/cmd/mkdir/mkdir.go@@ -1,3 +1,4 @@+// Package mkdir provides the mkdir command.package mkdirimport (diff --git a/cmd/mount/mount.go b/cmd/mount/mount.goindex db0f23bd3..765419df4 100644--- a/cmd/mount/mount.go+++ b/cmd/mount/mount.go@@ -1,8 +1,7 @@-// Package mount implements a FUSE mounting system for rclone remotes.-//go:build linux || freebsd// +build linux freebsd+// Package mount implements a FUSE mounting system for rclone remotes.package mountimport (diff --git a/cmd/mount/mount_unsupported.go b/cmd/mount/mount_unsupported.goindex cc5ccb628..84f8656dc 100644--- a/cmd/mount/mount_unsupported.go+++ b/cmd/mount/mount_unsupported.go@@ -1,9 +1,10 @@-// Build for mount for unsupported platforms to stop go complaining-// about "no buildable Go source files "--// Invert the build constraint: linux freebsd-//go:build !linux && !freebsd// +build !linux,!freebsd+// Package mount implements a FUSE mounting system for rclone remotes.+//+// Build for mount for unsupported platforms to stop go complaining+// about "no buildable Go source files".+//+// Invert the build constraint: linux freebsdpackage mountdiff --git a/cmd/mount2/mount.go b/cmd/mount2/mount.goindex d33f44533..cbb890500 100644--- a/cmd/mount2/mount.go+++ b/cmd/mount2/mount.go@@ -1,8 +1,7 @@-// Package mount implements a FUSE mounting system for rclone remotes.-//go:build linux || (darwin && amd64)// +build linux darwin,amd64+// Package mount2 implements a FUSE mounting system for rclone remotes.package mount2import (diff --git a/cmd/mount2/mount_unsupported.go b/cmd/mount2/mount_unsupported.goindex 975a25b3e..649eab0a2 100644--- a/cmd/mount2/mount_unsupported.go+++ b/cmd/mount2/mount_unsupported.go@@ -1,8 +1,9 @@-// Build for mount for unsupported platforms to stop go complaining-// about "no buildable Go source files "-//go:build !linux && (!darwin || !amd64)// +build !linux// +build !darwin !amd64+// Package mount2 implements a FUSE mounting system for rclone remotes.+//+// Build for mount for unsupported platforms to stop go complaining+// about "no buildable Go source files".package mount2diff --git a/cmd/mountlib/mount.go b/cmd/mountlib/mount.goindex b0119dc12..ba3773e5c 100644--- a/cmd/mountlib/mount.go+++ b/cmd/mountlib/mount.go@@ -1,3 +1,4 @@+// Package mountlib provides the mount command.package mountlibimport (diff --git a/cmd/move/move.go b/cmd/move/move.goindex 3d7f87167..65c8adc23 100644--- a/cmd/move/move.go+++ b/cmd/move/move.go@@ -1,3 +1,4 @@+// Package move provides the move command.package moveimport (diff --git a/cmd/moveto/moveto.go b/cmd/moveto/moveto.goindex 8d81bb3d3..698d7ee18 100644--- a/cmd/moveto/moveto.go+++ b/cmd/moveto/moveto.go@@ -1,3 +1,4 @@+// Package moveto provides the moveto command.package movetoimport (diff --git a/cmd/ncdu/ncdu.go b/cmd/ncdu/ncdu.goindex abb748b6d..02427fb49 100644--- a/cmd/ncdu/ncdu.go+++ b/cmd/ncdu/ncdu.go@@ -1,8 +1,7 @@-// Package ncdu implements a text based user interface for exploring a remote-//go:build !plan9 && !js// +build !plan9,!js+// Package ncdu implements a text based user interface for exploring a remotepackage ncduimport (diff --git a/cmd/obscure/obscure.go b/cmd/obscure/obscure.goindex d26f1d72b..08cf8a06a 100644--- a/cmd/obscure/obscure.go+++ b/cmd/obscure/obscure.go@@ -1,3 +1,4 @@+// Package obscure provides the obscure command.package obscureimport (diff --git a/cmd/purge/purge.go b/cmd/purge/purge.goindex 335615cf9..d41e22cf6 100644--- a/cmd/purge/purge.go+++ b/cmd/purge/purge.go@@ -1,3 +1,4 @@+// Package purge provides the purge command.package purgeimport (diff --git a/cmd/rc/rc.go b/cmd/rc/rc.goindex 53e8697d8..93c2e319e 100644--- a/cmd/rc/rc.go+++ b/cmd/rc/rc.go@@ -1,3 +1,4 @@+// Package rc provides the rc command.package rcimport (diff --git a/cmd/rcat/rcat.go b/cmd/rcat/rcat.goindex f082fa95d..c7766265d 100644--- a/cmd/rcat/rcat.go+++ b/cmd/rcat/rcat.go@@ -1,3 +1,4 @@+// Package rcat provides the rcat command.package rcatimport (diff --git a/cmd/rcd/rcd.go b/cmd/rcd/rcd.goindex cc4be57f9..940c300a6 100644--- a/cmd/rcd/rcd.go+++ b/cmd/rcd/rcd.go@@ -1,3 +1,4 @@+// Package rcd provides the rcd command.package rcdimport (diff --git a/cmd/reveal/reveal.go b/cmd/reveal/reveal.goindex 817dd92dd..e569a26b4 100644--- a/cmd/reveal/reveal.go+++ b/cmd/reveal/reveal.go@@ -1,3 +1,4 @@+// Package reveal provides the reveal command.package revealimport (diff --git a/cmd/rmdir/rmdir.go b/cmd/rmdir/rmdir.goindex 9b532ca47..778315be8 100644--- a/cmd/rmdir/rmdir.go+++ b/cmd/rmdir/rmdir.go@@ -1,3 +1,4 @@+// Package rmdir provides the rmdir command.package rmdirimport (diff --git a/cmd/rmdirs/rmdirs.go b/cmd/rmdirs/rmdirs.goindex 41788c527..11a09ca20 100644--- a/cmd/rmdirs/rmdirs.go+++ b/cmd/rmdirs/rmdirs.go@@ -1,3 +1,4 @@+// Package rmdir provides the rmdir command.package rmdirimport (diff --git a/cmd/selfupdate/selfupdate.go b/cmd/selfupdate/selfupdate.goindex 5bfd1cb66..ab24290b3 100644--- a/cmd/selfupdate/selfupdate.go+++ b/cmd/selfupdate/selfupdate.go@@ -1,6 +1,7 @@//go:build !noselfupdate// +build !noselfupdate+// Package selfupdate provides the selfupdate command.package selfupdateimport (diff --git a/cmd/serve/dlna/data/data.go b/cmd/serve/dlna/data/data.goindex 8e142b99f..a5a92880c 100644--- a/cmd/serve/dlna/data/data.go+++ b/cmd/serve/dlna/data/data.go@@ -1,6 +1,7 @@-//go:generate go run assets_generate.go+// Package data provides utilities for DLNA server.// The "go:generate" directive compiles static assets by running assets_generate.go-+//+//go:generate go run assets_generate.gopackage dataimport (diff --git a/cmd/serve/dlna/dlna.go b/cmd/serve/dlna/dlna.goindex da6a08a19..c36e492d7 100644--- a/cmd/serve/dlna/dlna.go+++ b/cmd/serve/dlna/dlna.go@@ -1,3 +1,4 @@+// Package dlna provides DLNA server.package dlnaimport (diff --git a/cmd/serve/dlna/dlnaflags/dlnaflags.go b/cmd/serve/dlna/dlnaflags/dlnaflags.goindex 06ea27a19..85a1347dc 100644--- a/cmd/serve/dlna/dlnaflags/dlnaflags.go+++ b/cmd/serve/dlna/dlnaflags/dlnaflags.go@@ -1,3 +1,4 @@+// Package dlnaflags provides utility functionality to DLNA.package dlnaflagsimport (diff --git a/cmd/serve/dlna/upnpav/upnpav.go b/cmd/serve/dlna/upnpav/upnpav.goindex 5ac5e17b7..c6dc9dc4f 100644--- a/cmd/serve/dlna/upnpav/upnpav.go+++ b/cmd/serve/dlna/upnpav/upnpav.go@@ -1,3 +1,4 @@+// Package upnpav provides utilities for DLNA server.package upnpavimport (diff --git a/cmd/serve/ftp/ftp.go b/cmd/serve/ftp/ftp.goindex 11753e42f..08cca77f3 100644--- a/cmd/serve/ftp/ftp.go+++ b/cmd/serve/ftp/ftp.go@@ -1,8 +1,7 @@-// Package ftp implements an FTP server for rclone-//go:build !plan9// +build !plan9+// Package ftp implements an FTP server for rclonepackage ftpimport (diff --git a/cmd/serve/http/data/data.go b/cmd/serve/http/data/data.goindex 73f6a1ff2..075acf8b7 100644--- a/cmd/serve/http/data/data.go+++ b/cmd/serve/http/data/data.go@@ -1,6 +1,7 @@-//go:generate go run assets_generate.go+// Package data provides common functionality for http servers// The "go:generate" directive compiles static assets by running assets_generate.go-+//+//go:generate go run assets_generate.gopackage dataimport (diff --git a/cmd/serve/http/http.go b/cmd/serve/http/http.goindex 8712f8ac8..cdf8afd28 100644--- a/cmd/serve/http/http.go+++ b/cmd/serve/http/http.go@@ -1,3 +1,4 @@+// Package http provides common functionality for http serverspackage httpimport (diff --git a/cmd/serve/httplib/httpflags/httpflags.go b/cmd/serve/httplib/httpflags/httpflags.goindex 899482b7f..109604f0e 100644--- a/cmd/serve/httplib/httpflags/httpflags.go+++ b/cmd/serve/httplib/httpflags/httpflags.go@@ -1,3 +1,4 @@+// Package httpflags provides utility functionality to HTTP.package httpflagsimport (diff --git a/cmd/serve/serve.go b/cmd/serve/serve.goindex 848cb24bb..f79162c82 100644--- a/cmd/serve/serve.go+++ b/cmd/serve/serve.go@@ -1,3 +1,4 @@+// Package serve provides the serve command.package serveimport (diff --git a/cmd/serve/sftp/sftp.go b/cmd/serve/sftp/sftp.goindex c77450a5e..1a7b7717c 100644--- a/cmd/serve/sftp/sftp.go+++ b/cmd/serve/sftp/sftp.go@@ -1,8 +1,7 @@-// Package sftp implements an SFTP server to serve an rclone VFS-//go:build !plan9// +build !plan9+// Package sftp implements an SFTP server to serve an rclone VFSpackage sftpimport (diff --git a/cmd/settier/settier.go b/cmd/settier/settier.goindex 6be1c1c6a..8a1d234f0 100644--- a/cmd/settier/settier.go+++ b/cmd/settier/settier.go@@ -1,3 +1,4 @@+// Package settier provides the settier command.package settierimport (diff --git a/cmd/sha1sum/sha1sum.go b/cmd/sha1sum/sha1sum.goindex 1c3115a8b..25badd19c 100644--- a/cmd/sha1sum/sha1sum.go+++ b/cmd/sha1sum/sha1sum.go@@ -1,3 +1,4 @@+// Package sha1sum provides the sha1sum command.package sha1sumimport (diff --git a/cmd/size/size.go b/cmd/size/size.goindex 5ed51c7a6..c084de527 100644--- a/cmd/size/size.go+++ b/cmd/size/size.go@@ -1,3 +1,4 @@+// Package size provides the size command.package sizeimport (diff --git a/cmd/sync/sync.go b/cmd/sync/sync.goindex be233cdd9..33a5b0027 100644--- a/cmd/sync/sync.go+++ b/cmd/sync/sync.go@@ -1,3 +1,4 @@+// Package sync provides the sync command.package syncimport (diff --git a/cmd/test/histogram/histogram.go b/cmd/test/histogram/histogram.goindex d4f02d5d9..a3a2865b8 100644--- a/cmd/test/histogram/histogram.go+++ b/cmd/test/histogram/histogram.go@@ -1,3 +1,4 @@+// Package histogram provides the histogram test command.package histogramimport (diff --git a/cmd/test/info/info.go b/cmd/test/info/info.goindex c4eef5f04..89cc10a01 100644--- a/cmd/test/info/info.go+++ b/cmd/test/info/info.go@@ -1,3 +1,4 @@+// Package info provides the info test command.package info// FIXME once translations are implemented will need a no-escapediff --git a/cmd/test/info/internal/build_csv/main.go b/cmd/test/info/internal/build_csv/main.goindex 96aa20a19..fbabe5b85 100644--- a/cmd/test/info/internal/build_csv/main.go+++ b/cmd/test/info/internal/build_csv/main.go@@ -1,3 +1,4 @@+// Package main provides utilities for the info test command.package mainimport (diff --git a/cmd/test/info/internal/internal.go b/cmd/test/info/internal/internal.goindex 663662904..7af06b87a 100644--- a/cmd/test/info/internal/internal.go+++ b/cmd/test/info/internal/internal.go@@ -1,3 +1,4 @@+// Package internal provides internal implementation for the info test command.package internalimport (diff --git a/cmd/test/memory/memory.go b/cmd/test/memory/memory.goindex 551723258..38b7b1683 100644--- a/cmd/test/memory/memory.go+++ b/cmd/test/memory/memory.go@@ -1,3 +1,4 @@+// Package memory provides the memory test command.package memoryimport (diff --git a/cmd/test/test.go b/cmd/test/test.goindex 39f5ccb29..774bf6c3a 100644--- a/cmd/test/test.go+++ b/cmd/test/test.go@@ -1,3 +1,4 @@+// Package test provides the test command.package testimport (diff --git a/cmd/touch/touch.go b/cmd/touch/touch.goindex 741c920b3..9f3d69b14 100644--- a/cmd/touch/touch.go+++ b/cmd/touch/touch.go@@ -1,3 +1,4 @@+// Package touch provides the touch command.package touchimport (diff --git a/cmd/tree/tree.go b/cmd/tree/tree.goindex 2528d9dc2..5705dcec8 100644--- a/cmd/tree/tree.go+++ b/cmd/tree/tree.go@@ -1,3 +1,4 @@+// Package tree provides the tree command.package treeimport (diff --git a/cmd/version/version.go b/cmd/version/version.goindex 3ec69e135..25a17aa41 100644--- a/cmd/version/version.go+++ b/cmd/version/version.go@@ -1,3 +1,4 @@+// Package version provides the version command.package versionimport (diff --git a/fs/chunkedreader/chunkedreader.go b/fs/chunkedreader/chunkedreader.goindex 1e29ea736..66cf666d2 100644--- a/fs/chunkedreader/chunkedreader.go+++ b/fs/chunkedreader/chunkedreader.go@@ -1,3 +1,4 @@+// Package chunkedreader provides functionality for reading in chunks.package chunkedreaderimport (diff --git a/fs/driveletter/driveletter.go b/fs/driveletter/driveletter.goindex 0a683509e..0c02f3976 100644--- a/fs/driveletter/driveletter.go+++ b/fs/driveletter/driveletter.go@@ -1,8 +1,7 @@-// Package driveletter returns whether a name is a valid drive letter-//go:build !windows// +build !windows+// Package driveletter returns whether a name is a valid drive letterpackage driveletter// IsDriveLetter returns a bool indicating whether name is a validdiff --git a/fs/driveletter/driveletter_windows.go b/fs/driveletter/driveletter_windows.goindex 40ca94d43..f8b506a80 100644--- a/fs/driveletter/driveletter_windows.go+++ b/fs/driveletter/driveletter_windows.go@@ -1,6 +1,7 @@//go:build windows// +build windows+// Package driveletter returns whether a name is a valid drive letterpackage driveletter// IsDriveLetter returns a bool indicating whether name is a validdiff --git a/fs/hash/hash.go b/fs/hash/hash.goindex 93b1de3b2..4540b40cf 100644--- a/fs/hash/hash.go+++ b/fs/hash/hash.go@@ -1,3 +1,4 @@+// Package hash provides hash utilities for Fs.package hashimport (diff --git a/fs/rc/jobs/job.go b/fs/rc/jobs/job.goindex cb3aaa833..613093e25 100644--- a/fs/rc/jobs/job.go+++ b/fs/rc/jobs/job.go@@ -1,5 +1,4 @@-// Manage background jobs that the rc is running-+// Package jobs manages background jobs that the rc is running.package jobsimport (diff --git a/fs/rc/webgui/plugins.go b/fs/rc/webgui/plugins.goindex a6730aacb..23f9692c2 100644--- a/fs/rc/webgui/plugins.go+++ b/fs/rc/webgui/plugins.go@@ -1,3 +1,4 @@+// Package webgui provides plugin functionality to the Web GUI.package webguiimport (diff --git a/fs/rc/webgui/webgui.go b/fs/rc/webgui/webgui.goindex 8153024d1..ee05730f7 100644--- a/fs/rc/webgui/webgui.go+++ b/fs/rc/webgui/webgui.go@@ -1,5 +1,4 @@-// Define the Web GUI helpers-+// Package webgui defines the Web GUI helpers.package webguiimport (diff --git a/fstest/mockfs/mockfs.go b/fstest/mockfs/mockfs.goindex fe73db5ca..62489c2f6 100644--- a/fstest/mockfs/mockfs.go+++ b/fstest/mockfs/mockfs.go@@ -1,3 +1,4 @@+// Package mockfs provides mock Fs for testing.package mockfsimport (diff --git a/lib/buildinfo/tags.go b/lib/buildinfo/tags.goindex 6e61a457d..945a1e445 100644--- a/lib/buildinfo/tags.go+++ b/lib/buildinfo/tags.go@@ -1,3 +1,4 @@+// Package buildinfo provides build information.package buildinfoimport (diff --git a/lib/daemonize/daemon_other.go b/lib/daemonize/daemon_other.goindex 788d034e0..a0781d453 100644--- a/lib/daemonize/daemon_other.go+++ b/lib/daemonize/daemon_other.go@@ -1,8 +1,7 @@-// Daemonization stub for non-Unix platforms (implementation)-//go:build windows || plan9 || js// +build windows plan9 js+// Package daemonize provides daemonization stub for non-Unix platforms.package daemonizeimport (diff --git a/lib/daemonize/daemon_unix.go b/lib/daemonize/daemon_unix.goindex beb89f7ac..1fcb2c55c 100644--- a/lib/daemonize/daemon_unix.go+++ b/lib/daemonize/daemon_unix.go@@ -1,8 +1,7 @@-// Daemonization interface for Unix platforms (implementation)-//go:build !windows && !plan9 && !js// +build !windows,!plan9,!js+// Package daemonize provides daemonization interface for Unix platforms.package daemonizeimport (diff --git a/lib/encoder/encoder.go b/lib/encoder/encoder.goindex d50a2fcfe..a14d7c848 100644--- a/lib/encoder/encoder.go+++ b/lib/encoder/encoder.go@@ -1,15 +1,13 @@-/*-Translate file names for usage on restrictive storage systems--The restricted set of characters are mapped to a unicode equivalent version-(most to their FULLWIDTH variant) to increase compatibility with other-storage systems.-See: http://unicode-search.net/unicode-namesearch.pl?term=FULLWIDTH--Encoders will also quote reserved characters to differentiate between-the raw and encoded forms.-*/-+// Package encoder provides functionality to translate file names+// for usage on restrictive storage systems.+//+// The restricted set of characters are mapped to a unicode equivalent version+// (most to their FULLWIDTH variant) to increase compatibility with other+// storage systems.+// See: http://unicode-search.net/unicode-namesearch.pl?term=FULLWIDTH+//+// Encoders will also quote reserved characters to differentiate between+// the raw and encoded forms.package encoderimport (diff --git a/lib/encoder/filename/init.go b/lib/encoder/filename/init.goindex 0cbc53c3c..ea206cb9e 100644--- a/lib/encoder/filename/init.go+++ b/lib/encoder/filename/init.go@@ -1,3 +1,4 @@+// Package filename provides utilities for encoder.package filenameimport (diff --git a/lib/encoder/internal/gen/main.go b/lib/encoder/internal/gen/main.goindex a94c37935..97bcb32ba 100644--- a/lib/encoder/internal/gen/main.go+++ b/lib/encoder/internal/gen/main.go@@ -1,3 +1,4 @@+// Package main provides utilities for encoder.package mainimport (diff --git a/lib/errors/errors.go b/lib/errors/errors.goindex 68238521e..ed848cbd6 100644--- a/lib/errors/errors.go+++ b/lib/errors/errors.go@@ -1,3 +1,4 @@+// Package errors provides error handling utilites.package errorsimport (diff --git a/lib/file/preallocate_windows.go b/lib/file/preallocate_windows.goindex 49352356a..39955092e 100644--- a/lib/file/preallocate_windows.go+++ b/lib/file/preallocate_windows.go@@ -92,7 +92,7 @@ func PreAllocate(size int64, out *os.File) error {}const (- FSCTL_SET_SPARSE = 0x000900c4+ FSCTL_SET_SPARSE = 0x000900c4 // Control code to set or clears the FILE_ATTRIBUTE_SPARSE_FILE attribute of a file.)// SetSparseImplemented is a constant indicating whether thediff --git a/lib/http/auth/auth.go b/lib/http/auth/auth.goindex e30ee9383..db50c8a30 100644--- a/lib/http/auth/auth.go+++ b/lib/http/auth/auth.go@@ -1,3 +1,4 @@+// Package auth provides authentication for http.package authimport (diff --git a/lib/jwtutil/jwtutil.go b/lib/jwtutil/jwtutil.goindex af99ed3f8..583036be9 100644--- a/lib/jwtutil/jwtutil.go+++ b/lib/jwtutil/jwtutil.go@@ -1,3 +1,4 @@+// Package jwtutil provides JWT utilities.package jwtutilimport (diff --git a/lib/kv/bolt.go b/lib/kv/bolt.goindex 5f9f3d7a6..6fcfe49dd 100644--- a/lib/kv/bolt.go+++ b/lib/kv/bolt.go@@ -1,6 +1,7 @@//go:build !plan9 && !js// +build !plan9,!js+// Package kv provides key/value database.package kvimport (diff --git a/lib/mmap/mmap.go b/lib/mmap/mmap.goindex 719bcf816..4f323c938 100644--- a/lib/mmap/mmap.go+++ b/lib/mmap/mmap.go@@ -1,3 +1,4 @@+// Package mmap provides memory mapped related utilities.package mmapimport "os"diff --git a/lib/oauthutil/oauthutil.go b/lib/oauthutil/oauthutil.goindex 350fe1671..a7326e886 100644--- a/lib/oauthutil/oauthutil.go+++ b/lib/oauthutil/oauthutil.go@@ -1,3 +1,4 @@+// Package oauthutil provides OAuth utilities.package oauthutilimport (diff --git a/lib/readers/context.go b/lib/readers/context.goindex 6af6efbaf..177b18809 100644--- a/lib/readers/context.go+++ b/lib/readers/context.go@@ -1,3 +1,4 @@+// Package readers provides io.Reader related utilities.package readersimport (diff --git a/vfs/vfs.go b/vfs/vfs.goindex b6dc141b3..77ccdf499 100644--- a/vfs/vfs.go+++ b/vfs/vfs.go@@ -10,15 +10,14 @@// may be referred to as "". However Stat strips slashes so you can// use paths with slashes in.//-// It also includes directory caching+// # It also includes directory caching//// The vfs package returns Error values to signal precisely which// error conditions have ocurred. It may also return general errors// it receives. It tries to use os Error values (e.g. os.ErrExist)// where possible.-+////go:generate sh -c "go run make_open_tests.go | gofmt > open_test.go"-package vfsimport (diff --git a/vfs/vfscache/downloaders/downloaders.go b/vfs/vfscache/downloaders/downloaders.goindex 46018c7e1..8d6e90fb2 100644--- a/vfs/vfscache/downloaders/downloaders.go+++ b/vfs/vfscache/downloaders/downloaders.go@@ -1,3 +1,4 @@+// Package downloaders provides utilities for the VFS layerpackage downloadersimport (diff --git a/vfs/vfscommon/cachemode.go b/vfs/vfscommon/cachemode.goindex a2d91bd4e..c82f3bc98 100644--- a/vfs/vfscommon/cachemode.go+++ b/vfs/vfscommon/cachemode.go@@ -1,3 +1,4 @@+// Package vfscommon provides utilities for VFS.package vfscommonimport (diff --git a/vfs/vfstest/vfs.go b/vfs/vfstest/vfs.goindex 382fb8844..ad56fd42e 100644--- a/vfs/vfstest/vfs.go+++ b/vfs/vfstest/vfs.go@@ -1,3 +1,4 @@+// Package vfstest provides tests for VFS.package vfstestimport (