diff --git a/clipboard/clipboard_darwin.go b/clipboard/clipboard_darwin.go index 58d4a2d..eedd4c3 100644 --- a/clipboard/clipboard_darwin.go +++ b/clipboard/clipboard_darwin.go @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build darwin // +build darwin package clipboard diff --git a/clipboard/clipboard_unix.go b/clipboard/clipboard_unix.go index dcae808..fde35cb 100644 --- a/clipboard/clipboard_unix.go +++ b/clipboard/clipboard_unix.go @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build freebsd || linux || netbsd || openbsd || solaris || dragonfly // +build freebsd linux netbsd openbsd solaris dragonfly package clipboard diff --git a/clipboard/clipboard_windows.go b/clipboard/clipboard_windows.go index 406bb65..2b9202e 100644 --- a/clipboard/clipboard_windows.go +++ b/clipboard/clipboard_windows.go @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build windows // +build windows package clipboard diff --git a/robotgo_mac_win.go b/robotgo_mac_win.go index 53d7541..de6d21a 100644 --- a/robotgo_mac_win.go +++ b/robotgo_mac_win.go @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +//go:build darwin || windows // +build darwin windows package robotgo diff --git a/robotgo_ocr.go b/robotgo_ocr.go index 6e1939f..b931a85 100644 --- a/robotgo_ocr.go +++ b/robotgo_ocr.go @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +//go:build ocr // +build ocr package robotgo diff --git a/robotgo_test.go b/robotgo_test.go index cce772a..9eb2de8 100644 --- a/robotgo_test.go +++ b/robotgo_test.go @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +//go:build darwin || windows // +build darwin windows package robotgo diff --git a/robotgo_unix.go b/robotgo_unix.go index 1463e75..009c9d4 100644 --- a/robotgo_unix.go +++ b/robotgo_unix.go @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +//go:build !darwin && !windows // +build !darwin,!windows package robotgo diff --git a/robotgo_win.go b/robotgo_win.go index eac9a9d..46a3808 100644 --- a/robotgo_win.go +++ b/robotgo_win.go @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +//go:build windows // +build windows package robotgo