Explorar o código

Use pointers for Date* fields

Andrea Fazzi %!s(int64=6) %!d(string=hai) anos
pai
achega
b60e331b72
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      orm/credential.go

+ 2 - 2
orm/credential.go

@@ -19,8 +19,8 @@ type Credential struct {
 	PlainPassword   string
 	Email           string `csv:"email"`
 	AltEmail        string
-	DateFrom        time.Time
-	DateTo          time.Time
+	DateFrom        *time.Time
+	DateTo          *time.Time
 	TelephoneNumber string
 
 	Regenerate bool `schema:"Regenerate" sql:"default: false"`