HomeUniDoc
...

Package algo

Overview ▾

func NaturalLess

func NaturalLess(lhs, rhs string) bool

NaturalLess compares two strings in a human manner so rId2 sorts less than rId10

func RepeatString

func RepeatString(s string, cnt int) string