fix: Change URL Value method to use value receiver for database encoding

This commit is contained in:
2024-11-11 16:19:07 +02:00
parent bb49ea8565
commit f0452ff9f7

View File

@@ -39,7 +39,7 @@ func (u *URL) String() string {
}
// Value implements the driver.Valuer interface
func (u *URL) Value() (driver.Value, error) {
func (u URL) Value() (driver.Value, error) {
if u.Full == "" {
return nil, nil
}