Documentation
      ¶
    
    
  
    
  
    Index ¶
- func AddLinePrefix(context string, linePrefix string) (output string)
 - func ContainsAtLeastOneSubstring(input string, substrings []string) (atLeastOneSubstringFound bool)
 - func ContainsAtLeastOneSubstringIgnoreCase(input string, substring []string) (atLeastOneSubstringFound bool)
 - func ContainsCommentOnly(input string) (containsCommentOnly bool)
 - func ContainsIgnoreCase(input string, substring string) (contains bool)
 - func ContainsLine(input string, line string) (containsLine bool)
 - func CountLines(input string) (nLines int)
 - func EnsureEndsWithExactlyOneLineBreak(input string) (ensuredLineBreak string)
 - func EnsureEndsWithLineBreak(input string) (ensuredLineBreak string)
 - func EnsureFirstCharLowercase(input string) (firstCharUppercase string)
 - func EnsureFirstCharUppercase(input string) (firstCharUppercase string)
 - func EnsurePrefix(input string, prefix string) (ensuredPrefix string)
 - func EnsureSuffix(input string, suffix string) (ensuredSuffix string)
 - func FirstCharToUpper(input string) (output string)
 - func GetAsKeyValues(input string) (output map[string]string, err error)
 - func GetFirstLine(input string) (firstLine string)
 - func GetFirstLineAndTrimSpace(input string) (firstLine string)
 - func GetFirstLineWithoutCommentAndTrimSpace(input string) (firstLine string)
 - func GetNumberOfLinesWithPrefix(content string, prefix string, trimLines bool) (numberOfLinesWithPrefix int)
 - func GetValueAsInt(input string, key string) (value int, err error)
 - func GetValueAsString(input string, key string) (value string, err error)
 - func HasAtLeastOnePrefix(toCheck string, prefixes []string) (hasPrefix bool)
 - func HasPrefixIgnoreCase(input string, prefix string) (hasPrefix bool)
 - func HexStringToBytes(hexString string) (output []byte, err error)
 - func IsBeforeInAlphabeth(s1 string, s2 string) (isBefore bool)
 - func IsComment(input string) (isComment bool)
 - func IsFirstCharLowerCase(input string) (isFirstCharLowerCase bool)
 - func IsFirstCharUpperCase(input string) (isFirstCharUpperCase bool)
 - func MatchesRegex(input string, regex string) (matches bool, err error)
 - func MustGetAsKeyValues(input string) (output map[string]string)
 - func MustGetValueAsInt(input string, key string) (value int)
 - func MustGetValueAsString(input string, key string) (value string)
 - func MustHexStringToBytes(hexString string) (output []byte)
 - func MustMatchesRegex(input string, regex string) (matches bool)
 - func RemoveCommentMarkers(input string) (commentContent string)
 - func RemoveCommentMarkersAndTrimSpace(input string) (commentContent string)
 - func RemoveComments(input string) (contentWithoutComments string)
 - func RemoveCommentsAndTrimSpace(input string) (output string)
 - func RemoveLinesWithPrefix(input string, prefixToRemove string) (output string)
 - func RemoveSurroundingQuotationMarks(input string) (output string)
 - func RemoveTailingNewline(input string) (cleaned string)
 - func RepeatReplaceAll(input string, search string, replaceWith string) (replaced string)
 - func RightFillWithSpaces(input string, fillLength int) (filled string)
 - func SplitAndGetLastElement(input string, token string) (lastElement string)
 - func SplitAtSpacesAndRemoveEmptyStrings(input string) (splitted []string)
 - func SplitFirstLineAndContent(input string) (firstLine string, contentWithoutFirstLine string)
 - func SplitLines(input string, removeLastLineIfEmpty bool) (splittedLines []string)
 - func SplitWords(input string) (words []string)
 - func ToHexString(input string, delimiter string) (hexString string)
 - func ToHexStringSlice(input string) (hexStringSlice []string)
 - func ToPascalCase(input string) (pascalCase string)
 - func ToSnakeCase(input string) (snakeCase string)
 - func TrimAllLeadingAndTailingNewLines(input string) (output string)
 - func TrimAllLeadingNewLines(input string) (output string)
 - func TrimAllPrefix(stringToCheck string, prefixToRemove string) (trimmedString string)
 - func TrimAllSuffix(stringToCheck string, suffixToRemove string) (trimmedString string)
 - func TrimAllTailingNewLines(input string) (output string)
 - func TrimPrefixAndSuffix(input string, prefix string, suffix string) (output string)
 - func TrimPrefixIgnoreCase(input string, prefix string) (trimmed string)
 - func TrimSpaceForEveryLine(input string) (trimmedForEveryLine string)
 - func TrimSpacesLeft(input string) (trimmedLeft string)
 - func TrimSpacesRight(input string) (trimmedLeft string)
 - func TrimSuffixAndSpace(input string, suffix string) (output string)
 - func TrimSuffixUntilAbsent(input string, suffixToRemove string) (withoutSuffix string)
 - type StringsService
 
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddLinePrefix ¶
func ContainsCommentOnly ¶
func ContainsIgnoreCase ¶
func ContainsLine ¶
func CountLines ¶
func EnsureEndsWithLineBreak ¶
func EnsurePrefix ¶
func EnsureSuffix ¶
func FirstCharToUpper ¶
func GetFirstLine ¶
func HasAtLeastOnePrefix ¶
func HasPrefixIgnoreCase ¶
func HexStringToBytes ¶
func IsBeforeInAlphabeth ¶
Returns true if s1 comes before s2 in the alphabeth. Alphabethical order is: - empty string - numbers [0-9] - chars [a-z]
func IsFirstCharLowerCase ¶
func IsFirstCharUpperCase ¶
func MustGetAsKeyValues ¶
func MustGetValueAsInt ¶
func MustGetValueAsString ¶
func MustHexStringToBytes ¶
func MustMatchesRegex ¶
func RemoveCommentMarkers ¶
func RemoveComments ¶
func RemoveLinesWithPrefix ¶
func RemoveTailingNewline ¶
func RepeatReplaceAll ¶
func RightFillWithSpaces ¶
func SplitAndGetLastElement ¶
func SplitLines ¶
func SplitWords ¶
func ToHexString ¶
Convert "input" to a hex string while every char is separated by the "delimiter".
func ToHexStringSlice ¶
Convert "input" to a hex string slices while every element of the hexStringSlice is the value of a char in hex as string.
func ToPascalCase ¶
func ToSnakeCase ¶
func TrimAllLeadingNewLines ¶
func TrimAllPrefix ¶
func TrimAllSuffix ¶
func TrimAllTailingNewLines ¶
func TrimPrefixAndSuffix ¶
func TrimPrefixIgnoreCase ¶
func TrimSpaceForEveryLine ¶
func TrimSpacesLeft ¶
func TrimSpacesRight ¶
func TrimSuffixAndSpace ¶
func TrimSuffixUntilAbsent ¶
Types ¶
type StringsService ¶
type StringsService struct{}
    func NewStringsService ¶
func NewStringsService() (s *StringsService)
func Strings ¶
func Strings() (stringsService *StringsService)
 Click to show internal directories. 
   Click to hide internal directories.