Documentation ¶
Index ¶
- func BuilderFormat(s *strings.Builder, format string, args ...any)
- func BuilderJoin(s *strings.Builder, str ...string)
- func CamelCaseTo(s string, delimiter rune) string
- func CutSpecialDuplicate(s, char string) string
- func FirstUpper(s string) string
- func Join(s ...string) (str string)
- func Md5(str string) string
- func Replace(s string, replace map[string]string) string
- func Replaces(s string, replace ...[]string) string
- func ToInt[T constraints.Integer](s string) T
- func ToInteger[T constraints.Integer](s string, defaults T) T
- type Builder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuilderJoin ¶
func CamelCaseTo ¶
CamelCaseTo 驼峰单词转下划线或横杠单词 //分隔符
func CutSpecialDuplicate ¶
CutSpecialDuplicate '\t', '\n', '\v', '\f', '\r', ' ', U+0085 (NEL), U+00A0 (NBSP)
func FirstUpper ¶
func Replaces ¶
Replaces replace string by slice as order
[]string sub []string like {old1,old2,old3,....,newString} all old[x] will be replaced by lasted newString
func ToInt ¶
func ToInt[T constraints.Integer](s string) T
func ToInteger ¶
func ToInteger[T constraints.Integer](s string, defaults T) T
Types ¶
Click to show internal directories.
Click to hide internal directories.