Documentation ¶
Index ¶
- func CheckIfKeysNonEmpty(s1 string, s2 string) bool
- func CheckValidRange(val int64, min int64, max int64) bool
- func FixedLengthString(length int, value interface{}, alignment AlignmentType) string
- func StringLookup(input interface{}, value string) bool
- func StringsLookup(refList []string, inputList []string) bool
- type AlignmentType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckIfKeysNonEmpty ¶
CheckIfKeysNonEmpty to check if both strings are non-empty
func CheckValidRange ¶
CheckValidRange to check if an integer value is within a specified range.
func FixedLengthString ¶
func FixedLengthString(length int, value interface{}, alignment AlignmentType) string
FixedLengthString to convert the given string into fixed length by truncating or padding.
func StringLookup ¶
StringLookup to check if a value exists in the given input
func StringsLookup ¶
StringsLookup returns true if all the items in the inputList exists in the refList, else returns false
Types ¶
type AlignmentType ¶
type AlignmentType int
AlignmentType for formatted output
const ( // LeftAlign to left-justify text LeftAlign AlignmentType = 1 + iota // RightAlign to right-justify text RightAlign // CenterAlign to align the text to the center CenterAlign )
Click to show internal directories.
Click to hide internal directories.