Documentation ¶
Index ¶
- func Abs(x int) int
- func CheckFloatVal(p *float64, name *float64)
- func CheckIntVal(p *int, name *int)
- func CheckStringVal(p *string, name *string)
- func FindInIntArray(array []int, item int) (bool, int)
- func FindInStringArray(array []string, item string) (bool, int)
- func FloatToString(inputNum float64) string
- func IsFlagSet(name string) (passed bool)
- func Max(x, y int) int
- func MaxFloat(x, y float64) float64
- func Min(x, y int) int
- func RecoverPanic()
- func StopApp()
- func WriteFile(fileLocation string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckFloatVal ¶
CheckFloatVal : assign a value to a float if the assigning float is non zero
func CheckIntVal ¶
CheckIntVal : assign a value to a int if the assigning int is non zero
func CheckStringVal ¶
CheckStringVal : assign a value to a string if the assigning string is not empty
func FindInIntArray ¶
FindInIntArray : * return true if an array contains a string value * return index for this string value (-1 if value not found)
func FindInStringArray ¶
FindInStringArray : * return true if an array contains a string value * return index for this string value (-1 if value not found)
func FloatToString ¶
FloatToString : * convert the float number passed, return a string
func IsFlagSet ¶
IsFlagSet : * Determine if a Flag has been passed to the applicaiton * return true if the flag has been called as a parameter to the app
func RecoverPanic ¶
func RecoverPanic()
RecoverPanic : * Called after go panic, when a parameter is not found in the main function
Types ¶
This section is empty.