str

package
v0.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 15, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompleteLines added in v0.8.0

func CompleteLines(lines, patterns, suplements []string) (newLines []string, err error)

func EscapeShellArg added in v0.6.3

func EscapeShellArg(s string) (result string)

func GetLineSubmatch added in v0.8.0

func GetLineSubmatch(lines, patterns []string) (matchIndex int, submatch []string, err error)

func GetSingleIndentation added in v0.6.4

func GetSingleIndentation(s string, level int) (result string, err error)

func GetSubKeys

func GetSubKeys(keys []string, parentKeys []string) (subKeys []string)

GetSubKeys get sub keys from dictionary

func GetUniqueElements added in v0.5.22

func GetUniqueElements(arr []string) (result []string)

func Indent added in v0.6.0

func Indent(multiLineStr string, indentation string) (indentedStr string)

indent second-last lines

func IsLower added in v0.6.3

func IsLower(s string) (result bool)

func IsUpper added in v0.6.3

func IsUpper(s string) (result bool)

func Repeat added in v0.6.4

func Repeat(s string, repetition int) (result string)

func ReplaceByMap added in v0.6.4

func ReplaceByMap(s string, replacementMap map[string]string) (result string)

func ReplaceLineAtIndex added in v0.8.0

func ReplaceLineAtIndex(lines []string, index int, replacements []string) (result []string, err error)

func ToCamelCase added in v0.6.3

func ToCamelCase(s string) (result string)

func ToKebabCase added in v0.6.3

func ToKebabCase(s string) (result string)

func ToPascalCase added in v0.6.3

func ToPascalCase(s string) (result string)

func ToSnakeCase added in v0.6.3

func ToSnakeCase(s string) (result string)

Types

type ByLenDesc added in v0.8.0

type ByLenDesc []string

func (ByLenDesc) Len added in v0.8.0

func (arr ByLenDesc) Len() int

func (ByLenDesc) Less added in v0.8.0

func (arr ByLenDesc) Less(i, j int) bool

func (ByLenDesc) Swap added in v0.8.0

func (arr ByLenDesc) Swap(i, j int)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL