Skip to content

Commit

Permalink
chore: update builds directives to new format
Browse files Browse the repository at this point in the history
Update "// +build" directives to match new "//go:build" format in Go
1.17.

https://go.dev/doc/go1.17#go-command
  • Loading branch information
tydavis committed Jan 7, 2022
1 parent b6eae4a commit ed0880c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions cmd/root_nowindows_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !windows
// +build !windows

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

package cmd
Expand Down
1 change: 1 addition & 0 deletions cmd/util_bsd.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// This file contains Darwin (MacOS) and *BSD specific calls.

//go:build freebsd || openbsd || dragonfly || darwin
// +build freebsd openbsd dragonfly darwin

package cmd
Expand Down

0 comments on commit ed0880c

Please sign in to comment.