{"modulePath":"github.com/msitte/common-host-libs","version":"v4.7.1+incompatible","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package stringformat\n\n## Functions\n\n```go\nfunc CheckIfKeysNonEmpty(s1 string, s2 string) bool\n```\nCheckIfKeysNonEmpty to check if both strings are non-empty\n\n```go\nfunc CheckValidRange(val int64, min int64, max int64) bool\n```\nCheckValidRange to check if an integer value is within a specified range.\n\n```go\nfunc FixedLengthString(length int, value interface{}, alignment AlignmentType) string\n```\nFixedLengthString to convert the given string into fixed length by truncating or padding.\n\n```go\nfunc StringLookup(input interface{}, value string) bool\n```\nStringLookup to check if a value exists in the given input\n\n```go\nfunc StringsLookup(refList []string, inputList []string) bool\n```\nStringsLookup returns true if all the items in the inputList exists in the refList, else returns false\n\n## Types\n\n```go\ntype AlignmentType int\n```\nAlignmentType for formatted output\n\n```go\nconst (\n\t// LeftAlign to left-justify text\n\tLeftAlign AlignmentType = 1 + iota\n\t// RightAlign to right-justify text\n\tRightAlign\n\t// CenterAlign to align the text to the center\n\tCenterAlign\n)\n```\n\n","path":"github.com/msitte/common-host-libs/stringformat","name":"stringformat","synopsis":"","isRedistributable":true}
