From 211877d18b7c1909fb6a1de8fc684ad6d4386de2 Mon Sep 17 00:00:00 2001 From: Gibheer Date: Fri, 21 May 2021 20:56:17 +0200 Subject: [PATCH] fix sql driver interface for subnet type Without this fix the interface was not recognized and resulted in an error message. --- types/ip.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/ip.go b/types/ip.go index 1ac8d27..448a6bb 100644 --- a/types/ip.go +++ b/types/ip.go @@ -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 }