stringx

package
v1.2.6 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: MIT Imports: 1 Imported by: 0

README

stringx

扩展了一些常用的字符串处理函数

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Append

func Append(h string, ss ...string) string

Append : append string

func AppendSlice

func AppendSlice(h string, ss []string) string

AppendSlice : append string slice to head string

func Concat

func Concat(ss ...string) string

Concat : concat

func ConcatSlice

func ConcatSlice(ss []string) string

ConcatSlice : concat slice

func ContainAny

func ContainAny(s string, sbs ...string) bool

ContainAny : contain any sub string

func ContainsAnySubs

func ContainsAnySubs(s string, sbs []string) bool

ContainsAnySubs : contain any sub string

func Reverse

func Reverse(s string) string

Reverse : reverse a string "" => "" "a" => "a" "ab" => "ba" "abc" => "cba" "abcd" => "dcba" "aba" => "aba"

func TrimStringsSpace

func TrimStringsSpace(ss []string) []string

TrimStringsSpace : trim a string slice space

Types

This section is empty.

Jump to

Keyboard shortcuts

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