diff --git a/cwriter/util_bsd.go b/cwriter/util_bsd.go index 4e3564e..215643b 100644 --- a/cwriter/util_bsd.go +++ b/cwriter/util_bsd.go @@ -1,4 +1,4 @@ -// +build darwin dragonfly freebsd netbsd openbsd +//go:build darwin || dragonfly || freebsd || netbsd || openbsd package cwriter diff --git a/cwriter/util_linux.go b/cwriter/util_linux.go index 253f12d..7d0e761 100644 --- a/cwriter/util_linux.go +++ b/cwriter/util_linux.go @@ -1,4 +1,4 @@ -// +build aix linux +//go:build aix || linux package cwriter diff --git a/cwriter/util_solaris.go b/cwriter/util_solaris.go index 4b29ff5..981f574 100644 --- a/cwriter/util_solaris.go +++ b/cwriter/util_solaris.go @@ -1,4 +1,4 @@ -// +build solaris +//go:build solaris package cwriter diff --git a/cwriter/util_zos.go b/cwriter/util_zos.go index b7d67fc..5daf003 100644 --- a/cwriter/util_zos.go +++ b/cwriter/util_zos.go @@ -1,4 +1,4 @@ -// +build zos +//go:build zos package cwriter diff --git a/cwriter/writer_posix.go b/cwriter/writer_posix.go index f54a5d0..9d03197 100644 --- a/cwriter/writer_posix.go +++ b/cwriter/writer_posix.go @@ -1,4 +1,4 @@ -// +build !windows +//go:build !windows package cwriter diff --git a/cwriter/writer_windows.go b/cwriter/writer_windows.go index 2c4c370..91fdfb3 100644 --- a/cwriter/writer_windows.go +++ b/cwriter/writer_windows.go @@ -1,4 +1,4 @@ -// +build windows +//go:build windows package cwriter diff --git a/go.mod b/go.mod index 6605622..f2da4b4 100644 --- a/go.mod +++ b/go.mod @@ -7,4 +7,6 @@ golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a ) -go 1.14 +require github.com/rivo/uniseg v0.2.0 // indirect + +go 1.17