package
0.0.0-20250208085904-1b1a66c1158a
Repository: https://github.com/breadchris/share.git
Documentation: pkg.go.dev
# Functions
Compare checks whether the validated value matches another string.
NewRecordDataValidator creates new [models.Record] data validator using the provided record constraints and schema.
UniqueId checks whether the provided model id already exists.
UploadedFileMimeType checks whether the validated `rest.UploadedFile` mimetype is within the provided allowed mime types.
UploadedFileSize checks whether the validated `rest.UploadedFile` size is no more than the provided maxBytes.
# Structs
RecordDataValidator defines a model.Record data validator using the provided record constraints and schema.