mirror of
https://github.com/rclone/rclone.git
synced 2026-03-02 03:11:15 +00:00
build: apply gofmt from golang 1.17
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
//go:build !plan9 && !js
|
||||
// +build !plan9,!js
|
||||
|
||||
package cachestats
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build cmount && cgo && (linux || darwin || freebsd || windows)
|
||||
// +build cmount
|
||||
// +build cgo
|
||||
// +build linux darwin freebsd windows
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build cmount && cgo && (linux || darwin || freebsd || windows) && (!race || !windows)
|
||||
// +build cmount
|
||||
// +build cgo
|
||||
// +build linux darwin freebsd windows
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
// +build cmount
|
||||
// +build cgo
|
||||
// +build !windows
|
||||
//go:build cmount && cgo && !windows
|
||||
// +build cmount,cgo,!windows
|
||||
|
||||
package cmount
|
||||
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
// +build cmount
|
||||
// +build cgo
|
||||
// +build windows
|
||||
//go:build cmount && cgo && windows
|
||||
// +build cmount,cgo,windows
|
||||
|
||||
package cmount
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build linux || freebsd
|
||||
// +build linux freebsd
|
||||
|
||||
package mount
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build linux || freebsd
|
||||
// +build linux freebsd
|
||||
|
||||
package mount
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
// FUSE main Fs
|
||||
|
||||
//go:build linux || freebsd
|
||||
// +build linux freebsd
|
||||
|
||||
package mount
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build linux || freebsd
|
||||
// +build linux freebsd
|
||||
|
||||
package mount
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
// Package mount implements a FUSE mounting system for rclone remotes.
|
||||
|
||||
//go:build linux || freebsd
|
||||
// +build linux freebsd
|
||||
|
||||
package mount
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build linux || freebsd
|
||||
// +build linux freebsd
|
||||
|
||||
package mount
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
// Invert the build constraint: linux freebsd
|
||||
|
||||
// +build !linux
|
||||
// +build !freebsd
|
||||
//go:build !linux && !freebsd
|
||||
// +build !linux,!freebsd
|
||||
|
||||
package mount
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build ignore
|
||||
// +build ignore
|
||||
|
||||
// Read blocks out of a single file to time the seeking code
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build ignore
|
||||
// +build ignore
|
||||
|
||||
// Read two files with lots of seeking to stress test the seek code
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build ignore
|
||||
// +build ignore
|
||||
|
||||
// Read lots files with lots of simultaneous seeking to stress test the seek code
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build linux || (darwin && amd64)
|
||||
// +build linux darwin,amd64
|
||||
|
||||
package mount2
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
// FUSE main Fs
|
||||
|
||||
//go:build linux || (darwin && amd64)
|
||||
// +build linux darwin,amd64
|
||||
|
||||
package mount2
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build linux || (darwin && amd64)
|
||||
// +build linux darwin,amd64
|
||||
|
||||
package mount2
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build linux || (darwin && amd64)
|
||||
// +build linux darwin,amd64
|
||||
|
||||
package mount2
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
// Daemonization interface for non-Unix variants only
|
||||
|
||||
//go:build windows || plan9 || js
|
||||
// +build windows plan9 js
|
||||
|
||||
package mountlib
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
// Daemonization interface for Unix variants only
|
||||
|
||||
//go:build !windows && !plan9 && !js
|
||||
// +build !windows,!plan9,!js
|
||||
|
||||
package mountlib
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build !plan9 && !js
|
||||
// +build !plan9,!js
|
||||
|
||||
package mountlib
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build plan9 || js
|
||||
// +build plan9 js
|
||||
|
||||
package mountlib
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build !noselfupdate
|
||||
// +build !noselfupdate
|
||||
|
||||
package selfupdate
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build noselfupdate
|
||||
// +build noselfupdate
|
||||
|
||||
package selfupdate
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build !noselfupdate
|
||||
// +build !noselfupdate
|
||||
|
||||
package selfupdate
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build !noselfupdate
|
||||
// +build !noselfupdate
|
||||
|
||||
package selfupdate
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build !noselfupdate
|
||||
// +build !noselfupdate
|
||||
|
||||
package selfupdate
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// +build !windows,!plan9,!js
|
||||
// +build !noselfupdate
|
||||
//go:build !windows && !plan9 && !js && !noselfupdate
|
||||
// +build !windows,!plan9,!js,!noselfupdate
|
||||
|
||||
package selfupdate
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build (plan9 || js) && !noselfupdate
|
||||
// +build plan9 js
|
||||
// +build !noselfupdate
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// +build windows
|
||||
// +build !noselfupdate
|
||||
//go:build windows && !noselfupdate
|
||||
// +build windows,!noselfupdate
|
||||
|
||||
package selfupdate
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build noselfupdate
|
||||
// +build noselfupdate
|
||||
|
||||
package cmd
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build !noselfupdate
|
||||
// +build !noselfupdate
|
||||
|
||||
package cmd
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
// Code generated by vfsgen; DO NOT EDIT.
|
||||
|
||||
//go:build !dev
|
||||
// +build !dev
|
||||
|
||||
package data
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build linux && !android
|
||||
// +build linux,!android
|
||||
|
||||
package docker
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build !linux || android
|
||||
// +build !linux android
|
||||
|
||||
package docker
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build linux || freebsd
|
||||
// +build linux freebsd
|
||||
|
||||
package docker
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build !linux && !freebsd
|
||||
// +build !linux,!freebsd
|
||||
|
||||
package docker
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
// Package ftp implements an FTP server for rclone
|
||||
|
||||
//+build !plan9
|
||||
//go:build !plan9
|
||||
// +build !plan9
|
||||
|
||||
package ftp
|
||||
|
||||
|
||||
@@ -3,7 +3,8 @@
|
||||
//
|
||||
// We skip tests on platforms with troublesome character mappings
|
||||
|
||||
//+build !windows,!darwin,!plan9
|
||||
//go:build !windows && !darwin && !plan9
|
||||
// +build !windows,!darwin,!plan9
|
||||
|
||||
package ftp
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
// Build for unsupported platforms to stop go complaining
|
||||
// about "no buildable Go source files "
|
||||
|
||||
//go:build plan9
|
||||
// +build plan9
|
||||
|
||||
package ftp
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build ignore
|
||||
// +build ignore
|
||||
|
||||
package main
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
// Code generated by vfsgen; DO NOT EDIT.
|
||||
|
||||
//go:build !dev
|
||||
// +build !dev
|
||||
|
||||
package data
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build ignore
|
||||
// +build ignore
|
||||
|
||||
// A simple auth proxy for testing purposes
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build ignore
|
||||
// +build ignore
|
||||
|
||||
// A simple auth proxy for testing purposes
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build !plan9
|
||||
// +build !plan9
|
||||
|
||||
package sftp
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build !plan9
|
||||
// +build !plan9
|
||||
|
||||
package sftp
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build !plan9
|
||||
// +build !plan9
|
||||
|
||||
package sftp
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build !plan9
|
||||
// +build !plan9
|
||||
|
||||
package sftp
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
// Package sftp implements an SFTP server to serve an rclone VFS
|
||||
|
||||
//go:build !plan9
|
||||
// +build !plan9
|
||||
|
||||
package sftp
|
||||
|
||||
@@ -3,7 +3,8 @@
|
||||
//
|
||||
// We skip tests on platforms with troublesome character mappings
|
||||
|
||||
//+build !windows,!darwin,!plan9
|
||||
//go:build !windows && !darwin && !plan9
|
||||
// +build !windows,!darwin,!plan9
|
||||
|
||||
package sftp
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -3,7 +3,8 @@
|
||||
//
|
||||
// We skip tests on platforms with troublesome character mappings
|
||||
|
||||
//+build !windows,!darwin
|
||||
//go:build !windows && !darwin
|
||||
// +build !windows,!darwin
|
||||
|
||||
package webdav
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
//+build darwin
|
||||
//go:build darwin
|
||||
// +build darwin
|
||||
|
||||
package cmd
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
//+build !darwin
|
||||
//go:build !darwin
|
||||
// +build !darwin
|
||||
|
||||
package cmd
|
||||
|
||||
|
||||
Reference in New Issue
Block a user