build: apply gofmt from golang 1.17

This commit is contained in:
Ivan Andreev 2021-09-09 15:25:25 +03:00
parent 2bc2546d5c
commit 24de896df2
178 changed files with 223 additions and 56 deletions

View File

@ -1,5 +1,6 @@
// Test AmazonCloudDrive filesystem interface // Test AmazonCloudDrive filesystem interface
//go:build acd
// +build acd // +build acd
package amazonclouddrive_test package amazonclouddrive_test

View File

@ -1,5 +1,6 @@
// Package azureblob provides an interface to the Microsoft Azure blob object storage system // Package azureblob provides an interface to the Microsoft Azure blob object storage system
//go:build !plan9 && !solaris && !js
// +build !plan9,!solaris,!js // +build !plan9,!solaris,!js
package azureblob package azureblob

View File

@ -1,3 +1,4 @@
//go:build !plan9 && !solaris && !js
// +build !plan9,!solaris,!js // +build !plan9,!solaris,!js
package azureblob package azureblob

View File

@ -1,5 +1,6 @@
// Test AzureBlob filesystem interface // Test AzureBlob filesystem interface
//go:build !plan9 && !solaris && !js
// +build !plan9,!solaris,!js // +build !plan9,!solaris,!js
package azureblob package azureblob

View File

@ -1,6 +1,7 @@
// Build for azureblob for unsupported platforms to stop go complaining // Build for azureblob for unsupported platforms to stop go complaining
// about "no buildable Go source files " // about "no buildable Go source files "
//go:build plan9 || solaris || js
// +build plan9 solaris js // +build plan9 solaris js
package azureblob package azureblob

View File

@ -1,3 +1,4 @@
//go:build !plan9 && !solaris && !js
// +build !plan9,!solaris,!js // +build !plan9,!solaris,!js
package azureblob package azureblob

View File

@ -1,3 +1,4 @@
//go:build !plan9 && !solaris && !js
// +build !plan9,!solaris,!js // +build !plan9,!solaris,!js
package azureblob package azureblob

View File

@ -1,3 +1,4 @@
//go:build !plan9 && !js
// +build !plan9,!js // +build !plan9,!js
package cache package cache

View File

@ -1,5 +1,5 @@
// +build !plan9,!js //go:build !plan9 && !js && !race
// +build !race // +build !plan9,!js,!race
package cache_test package cache_test

View File

@ -1,7 +1,7 @@
// Test Cache filesystem interface // Test Cache filesystem interface
// +build !plan9,!js //go:build !plan9 && !js && !race
// +build !race // +build !plan9,!js,!race
package cache_test package cache_test

View File

@ -1,6 +1,7 @@
// Build for cache for unsupported platforms to stop go complaining // Build for cache for unsupported platforms to stop go complaining
// about "no buildable Go source files " // about "no buildable Go source files "
//go:build plan9 || js
// +build plan9 js // +build plan9 js
package cache package cache

View File

@ -1,5 +1,5 @@
// +build !plan9,!js //go:build !plan9 && !js && !race
// +build !race // +build !plan9,!js,!race
package cache_test package cache_test

View File

@ -1,3 +1,4 @@
//go:build !plan9 && !js
// +build !plan9,!js // +build !plan9,!js
package cache package cache

View File

@ -1,3 +1,4 @@
//go:build !plan9 && !js
// +build !plan9,!js // +build !plan9,!js
package cache package cache

View File

@ -1,3 +1,4 @@
//go:build !plan9 && !js
// +build !plan9,!js // +build !plan9,!js
package cache package cache

View File

@ -1,3 +1,4 @@
//go:build !plan9 && !js
// +build !plan9,!js // +build !plan9,!js
package cache package cache

View File

@ -1,3 +1,4 @@
//go:build !plan9 && !js
// +build !plan9,!js // +build !plan9,!js
package cache package cache

View File

@ -1,3 +1,4 @@
//go:build !plan9 && !js
// +build !plan9,!js // +build !plan9,!js
package cache package cache

View File

@ -1,3 +1,4 @@
//go:build !plan9
// +build !plan9 // +build !plan9
package hdfs package hdfs

View File

@ -1,3 +1,4 @@
//go:build !plan9
// +build !plan9 // +build !plan9
package hdfs package hdfs

View File

@ -1,5 +1,6 @@
// Test HDFS filesystem interface // Test HDFS filesystem interface
//go:build !plan9
// +build !plan9 // +build !plan9
package hdfs_test package hdfs_test

View File

@ -1,6 +1,7 @@
// Build for hdfs for unsupported platforms to stop go complaining // Build for hdfs for unsupported platforms to stop go complaining
// about "no buildable Go source files " // about "no buildable Go source files "
//go:build plan9
// +build plan9 // +build plan9
package hdfs package hdfs

View File

@ -1,3 +1,4 @@
//go:build !plan9
// +build !plan9 // +build !plan9
package hdfs package hdfs

View File

@ -1,3 +1,4 @@
//go:build darwin || dragonfly || freebsd || linux
// +build darwin dragonfly freebsd linux // +build darwin dragonfly freebsd linux
package local package local

View File

@ -1,3 +1,4 @@
//go:build windows
// +build windows // +build windows
package local package local

View File

@ -1,3 +1,4 @@
//go:build !linux
// +build !linux // +build !linux
package local package local

View File

@ -1,3 +1,4 @@
//go:build linux
// +build linux // +build linux
package local package local

View File

@ -1,3 +1,4 @@
//go:build windows || plan9 || js
// +build windows plan9 js // +build windows plan9 js
package local package local

View File

@ -1,3 +1,4 @@
//go:build !windows && !plan9 && !js
// +build !windows,!plan9,!js // +build !windows,!plan9,!js
package local package local

View File

@ -1,5 +1,6 @@
// Device reading functions // Device reading functions
//go:build !darwin && !dragonfly && !freebsd && !linux && !netbsd && !openbsd && !solaris
// +build !darwin,!dragonfly,!freebsd,!linux,!netbsd,!openbsd,!solaris // +build !darwin,!dragonfly,!freebsd,!linux,!netbsd,!openbsd,!solaris
package local package local

View File

@ -1,5 +1,6 @@
// Device reading functions // Device reading functions
//go:build darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris
// +build darwin dragonfly freebsd linux netbsd openbsd solaris // +build darwin dragonfly freebsd linux netbsd openbsd solaris
package local package local

View File

@ -1,3 +1,4 @@
//go:build !windows
// +build !windows // +build !windows
package local package local

View File

@ -1,3 +1,4 @@
//go:build windows
// +build windows // +build windows
package local package local

View File

@ -1,3 +1,4 @@
//go:build !windows && !plan9 && !js
// +build !windows,!plan9,!js // +build !windows,!plan9,!js
package local package local

View File

@ -1,3 +1,4 @@
//go:build windows || plan9 || js
// +build windows plan9 js // +build windows plan9 js
package local package local

View File

@ -1,6 +1,7 @@
// Package qingstor provides an interface to QingStor object storage // Package qingstor provides an interface to QingStor object storage
// Home: https://www.qingcloud.com/ // Home: https://www.qingcloud.com/
//go:build !plan9 && !js
// +build !plan9,!js // +build !plan9,!js
package qingstor package qingstor

View File

@ -1,5 +1,6 @@
// Test QingStor filesystem interface // Test QingStor filesystem interface
//go:build !plan9 && !js
// +build !plan9,!js // +build !plan9,!js
package qingstor package qingstor

View File

@ -1,6 +1,7 @@
// Build for unsupported platforms to stop go complaining // Build for unsupported platforms to stop go complaining
// about "no buildable Go source files " // about "no buildable Go source files "
//go:build plan9 || js
// +build plan9 js // +build plan9 js
package qingstor package qingstor

View File

@ -1,5 +1,6 @@
// Upload object to QingStor // Upload object to QingStor
//go:build !plan9 && !js
// +build !plan9,!js // +build !plan9,!js
package qingstor package qingstor

View File

@ -1,5 +1,6 @@
// Package sftp provides a filesystem interface using github.com/pkg/sftp // Package sftp provides a filesystem interface using github.com/pkg/sftp
//go:build !plan9
// +build !plan9 // +build !plan9
package sftp package sftp

View File

@ -1,3 +1,4 @@
//go:build !plan9
// +build !plan9 // +build !plan9
package sftp package sftp

View File

@ -1,5 +1,6 @@
// Test Sftp filesystem interface // Test Sftp filesystem interface
//go:build !plan9
// +build !plan9 // +build !plan9
package sftp_test package sftp_test

View File

@ -1,6 +1,7 @@
// Build for sftp for unsupported platforms to stop go complaining // Build for sftp for unsupported platforms to stop go complaining
// about "no buildable Go source files " // about "no buildable Go source files "
//go:build plan9
// +build plan9 // +build plan9
package sftp package sftp

View File

@ -1,3 +1,4 @@
//go:build !plan9
// +build !plan9 // +build !plan9
package sftp package sftp

View File

@ -1,3 +1,4 @@
//go:build !plan9
// +build !plan9 // +build !plan9
package sftp package sftp

View File

@ -1,3 +1,4 @@
//go:build ignore
// +build ignore // +build ignore
package main package main

View File

@ -1,5 +1,6 @@
// Code generated by vfsgen; DO NOT EDIT. // Code generated by vfsgen; DO NOT EDIT.
//go:build !dev
// +build !dev // +build !dev
package sharefile package sharefile

View File

@ -1,3 +1,4 @@
//go:build !plan9
// +build !plan9 // +build !plan9
// Package tardigrade provides an interface to Tardigrade decentralized object storage. // Package tardigrade provides an interface to Tardigrade decentralized object storage.

View File

@ -1,3 +1,4 @@
//go:build !plan9
// +build !plan9 // +build !plan9
package tardigrade package tardigrade

View File

@ -1,3 +1,4 @@
//go:build !plan9
// +build !plan9 // +build !plan9
// Test Tardigrade filesystem interface // Test Tardigrade filesystem interface

View File

@ -1,3 +1,4 @@
//go:build plan9
// +build plan9 // +build plan9
package tardigrade package tardigrade

View File

@ -1,3 +1,4 @@
//go:build ignore
// +build ignore // +build ignore
// Attempt to work out if branches have already been merged // Attempt to work out if branches have already been merged

View File

@ -1,3 +1,4 @@
//go:build ignore
// +build ignore // +build ignore
// Cross compile rclone - in go because I hate bash ;-) // Cross compile rclone - in go because I hate bash ;-)

View File

@ -1,3 +1,4 @@
//go:build ignore
// +build ignore // +build ignore
// Get the latest release from a github project // Get the latest release from a github project

View File

@ -1,3 +1,4 @@
//go:build ignore
// +build ignore // +build ignore
// Test that the tests in the suite passed in are independent // Test that the tests in the suite passed in are independent

View File

@ -1,3 +1,4 @@
//go:build !plan9 && !js
// +build !plan9,!js // +build !plan9,!js
package cachestats package cachestats

View File

@ -1,6 +1,7 @@
// Build for cache for unsupported platforms to stop go complaining // Build for cache for unsupported platforms to stop go complaining
// about "no buildable Go source files " // about "no buildable Go source files "
//go:build plan9 || js
// +build plan9 js // +build plan9 js
package cachestats package cachestats

View File

@ -1,3 +1,4 @@
//go:build cmount && cgo && (linux || darwin || freebsd || windows)
// +build cmount // +build cmount
// +build cgo // +build cgo
// +build linux darwin freebsd windows // +build linux darwin freebsd windows

View File

@ -2,6 +2,7 @@
// //
// This uses the cgo based cgofuse library // This uses the cgo based cgofuse library
//go:build cmount && cgo && (linux || darwin || freebsd || windows)
// +build cmount // +build cmount
// +build cgo // +build cgo
// +build linux darwin freebsd windows // +build linux darwin freebsd windows

View File

@ -1,8 +1,8 @@
// Build for macos with the brew tag to handle the absence // Build for macos with the brew tag to handle the absence
// of fuse and print an appropriate error message // of fuse and print an appropriate error message
// +build brew //go:build brew && darwin
// +build darwin // +build brew,darwin
package cmount package cmount

View File

@ -1,3 +1,4 @@
//go:build cmount && cgo && (linux || darwin || freebsd || windows) && (!race || !windows)
// +build cmount // +build cmount
// +build cgo // +build cgo
// +build linux darwin freebsd windows // +build linux darwin freebsd windows

View File

@ -1,6 +1,7 @@
// Build for cmount for unsupported platforms to stop go complaining // Build for cmount for unsupported platforms to stop go complaining
// about "no buildable Go source files " // about "no buildable Go source files "
//go:build (!linux && !darwin && !freebsd && !windows) || !brew || !cgo || !cmount
// +build !linux,!darwin,!freebsd,!windows !brew !cgo !cmount // +build !linux,!darwin,!freebsd,!windows !brew !cgo !cmount
package cmount package cmount

View File

@ -1,6 +1,5 @@
// +build cmount //go:build cmount && cgo && !windows
// +build cgo // +build cmount,cgo,!windows
// +build !windows
package cmount package cmount

View File

@ -1,6 +1,5 @@
// +build cmount //go:build cmount && cgo && windows
// +build cgo // +build cmount,cgo,windows
// +build windows
package cmount package cmount

View File

@ -1,3 +1,4 @@
//go:build linux || freebsd
// +build linux freebsd // +build linux freebsd
package mount package mount

View File

@ -1,3 +1,4 @@
//go:build linux || freebsd
// +build linux freebsd // +build linux freebsd
package mount package mount

View File

@ -1,5 +1,6 @@
// FUSE main Fs // FUSE main Fs
//go:build linux || freebsd
// +build linux freebsd // +build linux freebsd
package mount package mount

View File

@ -1,3 +1,4 @@
//go:build linux || freebsd
// +build linux freebsd // +build linux freebsd
package mount package mount

View File

@ -1,5 +1,6 @@
// Package mount implements a FUSE mounting system for rclone remotes. // Package mount implements a FUSE mounting system for rclone remotes.
//go:build linux || freebsd
// +build linux freebsd // +build linux freebsd
package mount package mount

View File

@ -1,3 +1,4 @@
//go:build linux || freebsd
// +build linux freebsd // +build linux freebsd
package mount package mount

View File

@ -3,7 +3,7 @@
// Invert the build constraint: linux freebsd // Invert the build constraint: linux freebsd
// +build !linux //go:build !linux && !freebsd
// +build !freebsd // +build !linux,!freebsd
package mount package mount

View File

@ -1,3 +1,4 @@
//go:build ignore
// +build ignore // +build ignore
// Read blocks out of a single file to time the seeking code // Read blocks out of a single file to time the seeking code

View File

@ -1,3 +1,4 @@
//go:build ignore
// +build ignore // +build ignore
// Read two files with lots of seeking to stress test the seek code // Read two files with lots of seeking to stress test the seek code

View File

@ -1,3 +1,4 @@
//go:build ignore
// +build ignore // +build ignore
// Read lots files with lots of simultaneous seeking to stress test the seek code // Read lots files with lots of simultaneous seeking to stress test the seek code

View File

@ -1,3 +1,4 @@
//go:build linux || (darwin && amd64)
// +build linux darwin,amd64 // +build linux darwin,amd64
package mount2 package mount2

View File

@ -1,5 +1,6 @@
// FUSE main Fs // FUSE main Fs
//go:build linux || (darwin && amd64)
// +build linux darwin,amd64 // +build linux darwin,amd64
package mount2 package mount2

View File

@ -1,5 +1,6 @@
// Package mount implements a FUSE mounting system for rclone remotes. // Package mount implements a FUSE mounting system for rclone remotes.
//go:build linux || (darwin && amd64)
// +build linux darwin,amd64 // +build linux darwin,amd64
package mount2 package mount2

View File

@ -1,3 +1,4 @@
//go:build linux || (darwin && amd64)
// +build linux darwin,amd64 // +build linux darwin,amd64
package mount2 package mount2

View File

@ -1,6 +1,7 @@
// Build for mount for unsupported platforms to stop go complaining // Build for mount for unsupported platforms to stop go complaining
// about "no buildable Go source files " // about "no buildable Go source files "
//go:build !linux && (!darwin || !amd64)
// +build !linux // +build !linux
// +build !darwin !amd64 // +build !darwin !amd64

View File

@ -1,3 +1,4 @@
//go:build linux || (darwin && amd64)
// +build linux darwin,amd64 // +build linux darwin,amd64
package mount2 package mount2

View File

@ -1,5 +1,6 @@
// Daemonization interface for non-Unix variants only // Daemonization interface for non-Unix variants only
//go:build windows || plan9 || js
// +build windows plan9 js // +build windows plan9 js
package mountlib package mountlib

View File

@ -1,5 +1,6 @@
// Daemonization interface for Unix variants only // Daemonization interface for Unix variants only
//go:build !windows && !plan9 && !js
// +build !windows,!plan9,!js // +build !windows,!plan9,!js
package mountlib package mountlib

View File

@ -1,3 +1,4 @@
//go:build !plan9 && !js
// +build !plan9,!js // +build !plan9,!js
package mountlib package mountlib

View File

@ -1,3 +1,4 @@
//go:build plan9 || js
// +build plan9 js // +build plan9 js
package mountlib package mountlib

View File

@ -1,5 +1,6 @@
// Package ncdu implements a text based user interface for exploring a remote // Package ncdu implements a text based user interface for exploring a remote
//go:build !plan9 && !solaris && !js
// +build !plan9,!solaris,!js // +build !plan9,!solaris,!js
package ncdu package ncdu

View File

@ -1,6 +1,7 @@
// Build for ncdu for unsupported platforms to stop go complaining // Build for ncdu for unsupported platforms to stop go complaining
// about "no buildable Go source files " // about "no buildable Go source files "
//go:build plan9 || solaris || js
// +build plan9 solaris js // +build plan9 solaris js
package ncdu package ncdu

View File

@ -1,3 +1,4 @@
//go:build !noselfupdate
// +build !noselfupdate // +build !noselfupdate
package selfupdate package selfupdate

View File

@ -1,3 +1,4 @@
//go:build noselfupdate
// +build noselfupdate // +build noselfupdate
package selfupdate package selfupdate

View File

@ -1,3 +1,4 @@
//go:build !noselfupdate
// +build !noselfupdate // +build !noselfupdate
package selfupdate package selfupdate

View File

@ -1,3 +1,4 @@
//go:build !noselfupdate
// +build !noselfupdate // +build !noselfupdate
package selfupdate package selfupdate

View File

@ -1,3 +1,4 @@
//go:build !noselfupdate
// +build !noselfupdate // +build !noselfupdate
package selfupdate package selfupdate

View File

@ -1,5 +1,5 @@
// +build !windows,!plan9,!js //go:build !windows && !plan9 && !js && !noselfupdate
// +build !noselfupdate // +build !windows,!plan9,!js,!noselfupdate
package selfupdate package selfupdate

View File

@ -1,3 +1,4 @@
//go:build (plan9 || js) && !noselfupdate
// +build plan9 js // +build plan9 js
// +build !noselfupdate // +build !noselfupdate

View File

@ -1,5 +1,5 @@
// +build windows //go:build windows && !noselfupdate
// +build !noselfupdate // +build windows,!noselfupdate
package selfupdate package selfupdate

View File

@ -1,3 +1,4 @@
//go:build noselfupdate
// +build noselfupdate // +build noselfupdate
package cmd package cmd

View File

@ -1,3 +1,4 @@
//go:build !noselfupdate
// +build !noselfupdate // +build !noselfupdate
package cmd package cmd

View File

@ -1,5 +1,6 @@
//go:generate go run assets_generate.go //go:generate go run assets_generate.go
// The "go:generate" directive compiles static assets by running assets_generate.go // The "go:generate" directive compiles static assets by running assets_generate.go
//go:build ignore
// +build ignore // +build ignore
package main package main

View File

@ -1,5 +1,6 @@
// Code generated by vfsgen; DO NOT EDIT. // Code generated by vfsgen; DO NOT EDIT.
//go:build !dev
// +build !dev // +build !dev
package data package data

View File

@ -1,3 +1,4 @@
//go:build linux && !android
// +build linux,!android // +build linux,!android
package docker package docker

View File

@ -1,3 +1,4 @@
//go:build !linux || android
// +build !linux android // +build !linux android
package docker package docker

Some files were not shown because too many files have changed in this diff Show More