1
0

Fixed a bug where a struct would have old values in it

This commit is contained in:
konrad
2018-07-14 17:46:01 +02:00
committed by kolaente
parent a5552b8f9d
commit bcbd415529
4 changed files with 8 additions and 20 deletions

View File

@ -7,8 +7,4 @@ type CRUDable interface {
ReadAll(*User) (interface{}, error)
Update(int64) error
Delete(int64) error
// This method is needed, because old values would otherwise remain in the struct.
// TODO find a way of not needing an extra function
Empty()
}