fix sql driver interface for subnet type

Without this fix the interface was not recognized and resulted in an
error message.
This commit is contained in:
Gibheer 2021-05-21 20:56:17 +02:00
parent cb13ceab8f
commit 211877d18b
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ func (i IP) Is6() bool {
//
// This function is needed so that a subnet can be inserted into
// the database without much casting.
func (s *Subnet) Value() (driver.Value, error) {
func (s Subnet) Value() (driver.Value, error) {
return s.String(), nil
}