Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Hash ¶
This function returns a hash of a given value using the specified algorithm.
The `algorithm` parameter is the algorithm to use (e.g. "MD5", "SHA-1", "SHA-256"). The `value` parameter is the string to be hashed.
Returns the hash of the value parameter using the specified algorithm.
func ParseAmount ¶
ParseAmount parses or nullifies the given amount.
The `amount` parameter represents the amount to be parsed.
Returns a string that contains the parsed `amount`.
func ToJson ¶
This function serializes the object to a JSON string and returns it as a string. If an error occurs during the process, it will be returned.
func TrimValue ¶
TrimValue trims the given value.
The `value` parameter represents the input value to be trimmed.
Returns the trimmed version of the `value`.
func ValidateZeroValue ¶ added in v1.1.0
func ValidateZeroValue(value interface{}) bool
ValidateZeroValue checks if the value is the zero value for its type.
Returns a boolean evaluation.
Types ¶
This section is empty.