package
0.1.0
Repository: https://github.com/codenamor/common.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

ConvertBoolToYN converts a input if true to Y or false to N.
DefaultStringIfActualIsBlank will give default string if actual is empty else return actual value.
Distinct removes the duplicates from the List and returns a List with Unique values.
GetFirstN returns the first n characters of s, or s itself, if s has less than n characters returns empty string if n is equal or less than 0, regardless off s.
HostName returns HostName associated with that particular System eg: cncv.
IsDateInSpan returns true if the provided date is between or on the provided start and end dates otherwise returns false.
IsListEmpty checks if List is empty in the case of sourceSystem: [""] if empty returns true else false.
SeekProjectRoot searches up the file structure to find the directory containing go.mod and returns the absolute path, always ending in "/.
StringFloat64Sub takes two input string parameters, a and b, treats them as float64 values and returns the difference (a-b) as a string format with n precision.
StringInSlice checks if []string already has an element s.
StringsWithHyphenseparated accepts two inputs strings and validates if the strings are null and return empty string else return string in "a - b" format.
StringToDecimalString takes a string input, attempts to convert it to decimal If the conversion is successful, returns the string representation of the decimal n specifies the precision, how many digits after the decimal point.

# Structs

PostRequestWithParams struct.
StopWatch struct.