package
1.4.8
Repository: https://github.com/jubaerhossain/rootx.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
GenerateOrderCode generates a random code of the given length using the provided character set.
GenerateOTP generates a random OTP of the given length using numeric characters.
No description provided by the author
No description provided by the author
No description provided by the author
GetJSONFieldMap uses reflection to map struct fields to their JSON tags.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
StringToIntEnv retrieves an environment variable as an integer, returning a default value if the conversion fails.
UnmarshalBool is a reusable function that unmarshals both boolean and string representations.
ValidateAndCollectErrors validates the input struct and returns any custom and validation errors found.
WriteJSONEValidation dynamically gets JSON tag fields and writes a validation error response.
WriteJSONError writes a JSON error response with the specified status code and message.
No description provided by the author
WriteJSONResponse writes a JSON response with the specified status code.

# Constants

No description provided by the author

# Structs

No description provided by the author
Response represents a standardized JSON response format.

# Type aliases

No description provided by the author
No description provided by the author