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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
// Package driveletter returns whether a name is a valid drive letter
|
||||
|
||||
//go:build !windows
|
||||
// +build !windows
|
||||
|
||||
package driveletter
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build windows
|
||||
// +build windows
|
||||
|
||||
package driveletter
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build !plan9
|
||||
// +build !plan9
|
||||
|
||||
package fserrors
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build !plan9
|
||||
// +build !plan9
|
||||
|
||||
package fserrors
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build windows
|
||||
// +build windows
|
||||
|
||||
package fserrors
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
//+build gofuzz
|
||||
//go:build gofuzz
|
||||
// +build gofuzz
|
||||
|
||||
/*
|
||||
Fuzz test the Parse function
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
//
|
||||
// https://play.golang.org/p/kLtct7lSUg
|
||||
|
||||
//go:build windows
|
||||
// +build windows
|
||||
|
||||
package log
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
// Syslog interface for non-Unix variants only
|
||||
|
||||
//go:build windows || nacl || plan9
|
||||
// +build windows nacl plan9
|
||||
|
||||
package log
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
// Syslog interface for Unix variants only
|
||||
|
||||
//go:build !windows && !nacl && !plan9
|
||||
// +build !windows,!nacl,!plan9
|
||||
|
||||
package log
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
// Systemd interface for non-Unix variants only
|
||||
|
||||
//go:build windows || nacl || plan9
|
||||
// +build windows nacl plan9
|
||||
|
||||
package log
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
// Systemd interface for Unix variants only
|
||||
|
||||
//go:build !windows && !nacl && !plan9
|
||||
// +build !windows,!nacl,!plan9
|
||||
|
||||
package log
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
//
|
||||
// This library exports the core rc functionality
|
||||
|
||||
//go:build js
|
||||
// +build js
|
||||
|
||||
package main
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
//+build none
|
||||
//go:build none
|
||||
// +build none
|
||||
|
||||
package main
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
//+build !go1.14
|
||||
//go:build !go1.14
|
||||
// +build !go1.14
|
||||
|
||||
package fs
|
||||
|
||||
|
||||
Reference in New Issue
Block a user