package
0.0.0-20241202154501-5d0588ee4786
Repository: https://github.com/geerew/off-course.git
Documentation: pkg.go.dev
# Packages
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
# Functions
CheckTruth check string true or not.
CompareStructs compares deeply nested structs, returning true if they are equal.
DecodeString is a function that receives a Base64-encoded string and first decodes it from Base64 and then URL-decodes it.
DiffSliceOfStructsByKey takes in two slices of type T (left and right) and a key (string) as arguments.
EncodeString is a function that receives a string, URL-encodes it, and then encodes the result in Base64.
EscapeBackslashes escapes backslashes in the given path string by ensuring that all single backslashes are replaced with double backslashes, while retaining already escaped backslashes as single backslashes.
IsStructWithKey checks if the provided value is a struct or a pointer to a struct and if it contains the provided key.
Map is a generic function that takes a slice of type T and a function that maps T to type V.
NormalizeWindowsDrive normalizes a given path to ensure that drive letters on Windows are correctly interpreted.
PrettyFormat is a function that receives any data type, converts it to a JSON string, and formats it with indents for readability.
SliceIntersection returns the intersection of two slices.
snakeCase converts a string to snake_case.
TrimQuotes is a function that receives a string and removes double quote characters from the start and end of the string, if they exist.
ValueToString converts a reflect.Value to a string.
# Variables
No description provided by the author
No description provided by the author
Model.
No description provided by the author
No description provided by the author
No description provided by the author
DB.
Generic.
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