Add explicit build tags to platform-specific echo test files
The Go toolchain infers constraints from _darwin/_linux filename suffixes, but explicit //go:build tags make the constraint visible without relying on filename conventions, consistent with modern Go style. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
parent
9c4184de6f
commit
a44721d233
2 changed files with 4 additions and 0 deletions
|
|
@ -1,3 +1,5 @@
|
|||
//go:build darwin
|
||||
|
||||
package prompter_test
|
||||
|
||||
import "golang.org/x/sys/unix"
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
//go:build linux
|
||||
|
||||
package prompter_test
|
||||
|
||||
import "golang.org/x/sys/unix"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue