Versions in this module Expand all Collapse all v0 v0.1.4 Apr 16, 2020 v0.1.3 Apr 13, 2020 Changes in this version + func AsJson(i interface{}) string + func ColoredString(str string, colorAttributes ...color.Attribute) string + func ColoredStringDirect(str string, colour *color.Color) string + func Decolorise(str string) string + func DifferenceInt(a, b []int) []int + func FindStringSubmatch(str string, regexpStr string) (bool, []string) + func GetCurrentRepoName() string + func GetProjectRoot() string + func IncludesInt(list []int, a int) bool + func IncludesString(list []string, a string) bool + func Loader() string + func Min(x, y int) int + func ModuloWithWrap(n, max int) int + func NextIndex(numbers []int, currentNumber int) int + func NextIntInCycle(sl []int, current int) int + func NormalizeLinefeeds(str string) string + func PrevIndex(numbers []int, currentNumber int) int + func PrevIntInCycle(sl []int, current int) int + func RenderDisplayStrings(displayStringsArr [][]string) string + func ResolvePlaceholderString(str string, arguments map[string]string) string + func SplitLines(multilineString string) []string + func StringIndex(haystack []string, needle string) (int, bool) + func TrimTrailingNewline(str string) string + func TruncateWithEllipsis(str string, limit int) string + func UnionInt(a, b []int) []int + func UnixToDate(timestamp int64) string + func UnixToTimeAgo(timestamp int64) string + func WithPadding(str string, padding int) string