feed functions

This commit is contained in:
Nazar Kanaev
2020-06-21 22:46:23 +01:00
committed by nkanaev
parent 6621f49770
commit 4f9715ba93
3 changed files with 63 additions and 0 deletions

View File

@@ -58,3 +58,10 @@ func New() (*Storage, error) {
}
return &Storage{db: db}, nil
}
func intOrNil(id int64) interface{} {
if id == 0 {
return nil
}
return id
}