Mercurial > gemma
diff pkg/models/common.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 | 1222b777f51f |
children |
line wrap: on
line diff
--- a/pkg/models/common.go Tue Feb 20 22:22:57 2024 +0100 +++ b/pkg/models/common.go Tue Feb 20 22:37:51 2024 +0100 @@ -124,7 +124,7 @@ } // Scan implements the sql.Scanner interfaces. -func (c *Country) Scan(src interface{}) (err error) { +func (c *Country) Scan(src any) (err error) { if s, ok := src.(string); ok { *c = Country(s) } else {