Skip to content

Commit

Permalink
go fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
aschmahmann committed May 3, 2022
1 parent 7025c6d commit 679b8b1
Show file tree
Hide file tree
Showing 27 changed files with 36 additions and 8 deletions.
1 change: 1 addition & 0 deletions cmd/ipfs/daemon_linux.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build linux
// +build linux

package main
Expand Down
1 change: 1 addition & 0 deletions cmd/ipfs/daemon_other.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !linux
// +build !linux

package main
Expand Down
1 change: 1 addition & 0 deletions cmd/ipfs/runmain_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build testrunmain
// +build testrunmain

package main
Expand Down
1 change: 1 addition & 0 deletions cmd/ipfs/util/signal.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !wasm
// +build !wasm

package util
Expand Down
3 changes: 2 additions & 1 deletion cmd/ipfs/util/ui.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
//+build !windows
//go:build !windows
// +build !windows

package util

Expand Down
1 change: 1 addition & 0 deletions cmd/ipfs/util/ulimit_freebsd.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build freebsd
// +build freebsd

package util
Expand Down
1 change: 1 addition & 0 deletions cmd/ipfs/util/ulimit_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !windows && !plan9
// +build !windows,!plan9

package util
Expand Down
1 change: 1 addition & 0 deletions cmd/ipfs/util/ulimit_unix.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build darwin || linux || netbsd || openbsd
// +build darwin linux netbsd openbsd

package util
Expand Down
1 change: 1 addition & 0 deletions cmd/ipfs/util/ulimit_windows.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build windows
// +build windows

package util
Expand Down
1 change: 1 addition & 0 deletions cmd/ipfswatch/ipfswatch_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !plan9
// +build !plan9

package main
Expand Down
1 change: 1 addition & 0 deletions core/commands/mount_nofuse.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !windows && nofuse
// +build !windows,nofuse

package commands
Expand Down
10 changes: 5 additions & 5 deletions core/commands/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ var ErrNotOnline = errors.New("this command must be run in online mode. Try runn
const (
RepoDirOption = "repo-dir"
ConfigFileOption = "config-file"
ConfigOption = "config"
DebugOption = "debug"
LocalOption = "local" // DEPRECATED: use OfflineOption
OfflineOption = "offline"
ApiOption = "api"
ConfigOption = "config"
DebugOption = "debug"
LocalOption = "local" // DEPRECATED: use OfflineOption
OfflineOption = "offline"
ApiOption = "api"
)

var Root = &cmds.Command{
Expand Down
1 change: 1 addition & 0 deletions fuse/ipns/ipns_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !nofuse && !openbsd && !netbsd && !plan9
// +build !nofuse,!openbsd,!netbsd,!plan9

package ipns
Expand Down
1 change: 1 addition & 0 deletions fuse/ipns/ipns_unix.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !nofuse && !openbsd && !netbsd && !plan9
// +build !nofuse,!openbsd,!netbsd,!plan9

// package fuse/ipns implements a fuse filesystem that interfaces
Expand Down
1 change: 1 addition & 0 deletions fuse/ipns/link_unix.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !nofuse && !openbsd && !netbsd && !plan9
// +build !nofuse,!openbsd,!netbsd,!plan9

package ipns
Expand Down
1 change: 1 addition & 0 deletions fuse/ipns/mount_unix.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build (linux || darwin || freebsd || netbsd || openbsd) && !nofuse
// +build linux darwin freebsd netbsd openbsd
// +build !nofuse

Expand Down
1 change: 1 addition & 0 deletions fuse/mount/fuse.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !nofuse && !windows && !openbsd && !netbsd && !plan9
// +build !nofuse,!windows,!openbsd,!netbsd,!plan9

package mount
Expand Down
1 change: 1 addition & 0 deletions fuse/node/mount_darwin.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !nofuse
// +build !nofuse

package node
Expand Down
1 change: 1 addition & 0 deletions fuse/node/mount_nofuse.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !windows && nofuse
// +build !windows,nofuse

package node
Expand Down
1 change: 1 addition & 0 deletions fuse/node/mount_notsupp.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build (!nofuse && openbsd) || (!nofuse && netbsd) || (!nofuse && plan9)
// +build !nofuse,openbsd !nofuse,netbsd !nofuse,plan9

package node
Expand Down
1 change: 1 addition & 0 deletions fuse/node/mount_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !openbsd && !nofuse && !netbsd && !plan9
// +build !openbsd,!nofuse,!netbsd,!plan9

package node
Expand Down
1 change: 1 addition & 0 deletions fuse/node/mount_unix.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !windows && !openbsd && !netbsd && !plan9 && !nofuse
// +build !windows,!openbsd,!netbsd,!plan9,!nofuse

package node
Expand Down
1 change: 1 addition & 0 deletions fuse/readonly/ipfs_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !nofuse && !openbsd && !netbsd && !plan9
// +build !nofuse,!openbsd,!netbsd,!plan9

package readonly
Expand Down
1 change: 1 addition & 0 deletions fuse/readonly/mount_unix.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build (linux || darwin || freebsd) && !nofuse
// +build linux darwin freebsd
// +build !nofuse

Expand Down
4 changes: 3 additions & 1 deletion plugin/loader/load_nocgo.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// +build !cgo,!noplugin
//go:build !cgo && !noplugin && (linux || darwin || freebsd)
// +build !cgo
// +build !noplugin
// +build linux darwin freebsd

package loader
Expand Down
1 change: 1 addition & 0 deletions plugin/loader/load_noplugin.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build noplugin
// +build noplugin

package loader
Expand Down
4 changes: 3 additions & 1 deletion plugin/loader/load_unix.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// +build cgo,!noplugin
//go:build cgo && !noplugin && (linux || darwin || freebsd)
// +build cgo
// +build !noplugin
// +build linux darwin freebsd

package loader
Expand Down

0 comments on commit 679b8b1

Please sign in to comment.