diff pkg/auth/encode.go @ 5712:6270951dda28 revive-cleanup

/interface{}/any/
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Tue, 20 Feb 2024 22:37:51 +0100
parents 91f4b3f56ce2
children
line wrap: on
line diff
--- a/pkg/auth/encode.go	Tue Feb 20 22:22:57 2024 +0100
+++ b/pkg/auth/encode.go	Tue Feb 20 22:37:51 2024 +0100
@@ -38,7 +38,7 @@
 
 // ReadBin reads big endian encodes binary data into x.
 // If an error was encountered before no data is read.
-func (r *BinReader) ReadBin(x interface{}) {
+func (r *BinReader) ReadBin(x any) {
 	if r.Err == nil {
 		r.Err = binary.Read(r.Reader, binary.BigEndian, x)
 	}
@@ -83,7 +83,7 @@
 
 // WriteBin writes x big endian encoded to the underlying io.Writer.
 // If an error was encountered before no data is written.
-func (w *BinWriter) WriteBin(x interface{}) {
+func (w *BinWriter) WriteBin(x any) {
 	if w.Err == nil {
 		w.Err = binary.Write(w.Writer, binary.BigEndian, x)
 	}