Documentation
¶
Overview ¶
Package functions contains list of functions that are commonly used in a project. For instance, formatting of strings or currency values.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertToMap ¶
ConvertToMap converts a struct to bson.M This is used for updating the data In this function removes empty fields and id from the struct as per user choice
func CurrencyFormat ¶
CurrencyFormat returns string representation of value rounded to a floating-point value to up by 2 decimal places
func Round2DecimalPlaces ¶
Round2DecimalPlaces rounds to a floating-point value to up by 2 decimal places
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.