1
0
mirror of https://github.com/rclone/rclone.git synced 2026-01-04 09:33:36 +00:00

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,6 +1,7 @@
// Accounting and limiting reader
// Non-unix specific functions.
//go:build !darwin && !dragonfly && !freebsd && !linux && !netbsd && !openbsd && !solaris
// +build !darwin,!dragonfly,!freebsd,!linux,!netbsd,!openbsd,!solaris
package accounting

View File

@@ -1,6 +1,7 @@
// Accounting and limiting reader
// Unix specific functions.
//go:build darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris
// +build darwin dragonfly freebsd linux netbsd openbsd solaris
package accounting

View File

@@ -2,6 +2,7 @@
// See https://github.com/golang/go/issues/14441 - plan9
// https://github.com/golang/go/issues/13085 - solaris
//go:build !solaris && !plan9
// +build !solaris,!plan9
package config

View File

@@ -2,6 +2,7 @@
// See https://github.com/golang/go/issues/14441 - plan9
// https://github.com/golang/go/issues/13085 - solaris
//go:build solaris || plan9
// +build solaris plan9
package config

View File

@@ -1,6 +1,7 @@
// Read, write and edit the config file
// Non-unix specific functions.
//go:build !darwin && !dragonfly && !freebsd && !linux && !netbsd && !openbsd && !solaris
// +build !darwin,!dragonfly,!freebsd,!linux,!netbsd,!openbsd,!solaris
package configfile

View File

@@ -1,6 +1,7 @@
// Read, write and edit the config file
// Unix specific functions.
//go:build darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris
// +build darwin dragonfly freebsd linux netbsd openbsd solaris
package configfile

View File

@@ -1,5 +1,6 @@
// Package driveletter returns whether a name is a valid drive letter
//go:build !windows
// +build !windows
package driveletter

View File

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

View File

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

View File

@@ -1,10 +1,11 @@
//go:build plan9
// +build plan9
package fserrors
// IsErrNoSpace() on plan9 returns false because
// IsErrNoSpace() on plan9 returns false because
// plan9 does not support syscall.ENOSPC error.
func IsErrNoSpace(cause error) (isNoSpc bool) {
isNoSpc = false
return
return
}

View File

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

View File

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

View File

@@ -1,4 +1,5 @@
//+build gofuzz
//go:build gofuzz
// +build gofuzz
/*
Fuzz test the Parse function

View File

@@ -1,5 +1,6 @@
// Log the panic to the log file - for oses which can't do this
//go:build !windows && !darwin && !dragonfly && !freebsd && !linux && !nacl && !netbsd && !openbsd
// +build !windows,!darwin,!dragonfly,!freebsd,!linux,!nacl,!netbsd,!openbsd
package log

View File

@@ -1,5 +1,6 @@
// Log the panic under unix to the log file
//go:build !windows && !solaris && !plan9 && !js
// +build !windows,!solaris,!plan9,!js
package log

View File

@@ -4,6 +4,7 @@
//
// https://play.golang.org/p/kLtct7lSUg
//go:build windows
// +build windows
package log

View File

@@ -1,5 +1,6 @@
// Syslog interface for non-Unix variants only
//go:build windows || nacl || plan9
// +build windows nacl plan9
package log

View File

@@ -1,5 +1,6 @@
// Syslog interface for Unix variants only
//go:build !windows && !nacl && !plan9
// +build !windows,!nacl,!plan9
package log

View File

@@ -1,5 +1,6 @@
// Systemd interface for non-Unix variants only
//go:build windows || nacl || plan9
// +build windows nacl plan9
package log

View File

@@ -1,5 +1,6 @@
// Systemd interface for Unix variants only
//go:build !windows && !nacl && !plan9
// +build !windows,!nacl,!plan9
package log

View File

@@ -2,6 +2,7 @@
//
// This library exports the core rc functionality
//go:build js
// +build js
package main

View File

@@ -1,4 +1,5 @@
//+build none
//go:build none
// +build none
package main

View File

@@ -1,4 +1,5 @@
//+build !go1.14
//go:build !go1.14
// +build !go1.14
package fs