stringx

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains

func Contains(arr []string, s string) bool

Contains 判断字符串数组是否包含某一元素

func Difference

func Difference(a, b []string) []string

Difference 差集 a -> b

func Filter

func Filter(s string, filter func(r string) bool) string

Filter 字符串过滤器 filter 返回 true 时,会过滤掉 r,反之

func HasEmpty

func HasEmpty(args ...string) bool

HasEmpty 判断是否有空值

func Intersect

func Intersect(slice1, slice2 []string) []string

Intersect 交集

func NotEmpty

func NotEmpty(args ...string) bool

NotEmpty 判断是否有空值

func Remove

func Remove(strings []string, outs ...string) []string

Remove 删除指定元素

func Reverse

func Reverse(s string) string

Reverse 反转字符串

func RmDump

func RmDump(arr []string) []string

RmDump 去重

func Union

func Union(slice1, slice2 []string) []string

Union 并集

Types

This section is empty.

Jump to

Keyboard shortcuts

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