Documentation ¶
Index ¶
- func CheckDiff(old interface{}, new interface{}, fieldsToSkip map[string]bool) []string
- func FormatTime(t time.Time) string
- func IsAcceptedStatus(status string) bool
- func IsDecimalValid(num string) bool
- func IsValidEmail(email string) bool
- func ParseTime(s string) time.Time
- func ToIDStrings(objIDs []primitive.ObjectID) []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckDiff ¶
CheckDiff checks what fields have been changed. Only checks "String", "Int" and "Float64" types.
func IsAcceptedStatus ¶
IsAcceptedStatus checks if the business status is accpeted.
func IsDecimalValid ¶
IsDecimalValid checks the num is positive value and with up to two decimal places.
func ToIDStrings ¶
ToIDStrings converts Object IDs into strings.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.