diff pkg/common/attributes.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 5f47eeea988d
children
line wrap: on
line diff
--- a/pkg/common/attributes.go	Tue Feb 20 22:22:57 2024 +0100
+++ b/pkg/common/attributes.go	Tue Feb 20 22:37:51 2024 +0100
@@ -41,7 +41,7 @@
 )
 
 // Marshal fills src into ca.
-func (ca Attributes) Marshal(src interface{}) error {
+func (ca Attributes) Marshal(src any) error {
 	if ca == nil {
 		return nil
 	}
@@ -53,7 +53,7 @@
 }
 
 // Unmarshal stored ca into dst.
-func (ca Attributes) Unmarshal(dst interface{}) error {
+func (ca Attributes) Unmarshal(dst any) error {
 	if ca == nil {
 		return nil
 	}