package
0.0.0-20250118164806-5041dba8c4b1
Repository: https://github.com/go-lumen/lumen-api.git
Documentation: pkg.go.dev
# Functions
CalcBusinessDays allows computing number of business days between 2 dates.
CheckErr checks error and print it if it exists.
EnforcePointer takes an object and enforce a pointer.
EnsurePointer ensures that an interface{} is passed as a pointer.
FindIntInSlice allows to find an int in a slice.
FindStringInSlice allows to find a string in a slice.
FormatDate allows to format a date.
GenerateTimestampArray allows to generate a Timestamp array.
Log logs if debug env var is set at true.
MongoIDToTimestamp allows extracting timestamp from Mongo Object ID.
RemoveStringFromSlice allows to remove a string in a slice.
Typ returns object type.
ValidateInputField allows returning correct value from an input.