package
3.1.0+incompatible
Repository: https://github.com/scalingo/go-utils.git
Documentation: pkg.go.dev
# Functions
Create inser the document in the database, returns an error if document already exists and set CreatedAt timestamp.
Destroy really deletes.
Find is finding the model with objectid id in the collection name, with its default scope for paranoid documents, it won't look at documents tagged as deleted.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
FindUnscoped is similar as Find but does not care of the default scope of the document.
NewValidationErrors return an empty ValidationErrors struct.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
No description provided by the author
No description provided by the author
ValidationErrors store each errors associated to every fields of a model.
ValidationErrorsBuilder is used to provide a simple way to create a ValidationErrors struct.
# Interfaces
No description provided by the author