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
//go:build acd
// +build acd
package amazonclouddrive_test

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,3 +1,4 @@
//go:build ignore
// +build ignore
// 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
package mount2

View File

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

View File

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

View File

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

View File

@ -1,6 +1,7 @@
// 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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

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