stringutil

package
v0.0.0-...-1b35c59 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CamelCaseToUnderscore

func CamelCaseToUnderscore(str string) string

CamelCaseToUnderscore 驼峰转为下划线

func Diff

func Diff(base, exclude []string) (result []string)

Diff 基于切片排除切片中的数据。返回已排除数据的切片

func FindString

func FindString(array []string, str string) int

FindString 找字符串在切片中的位置

func Reverse

func Reverse(s string) string

Reverse 反转字符串

func StringIn

func StringIn(str string, array []string) bool

StringIn 字符串是否存在切片中

func UnderscoreToCamelCase

func UnderscoreToCamelCase(str string) string

UnderscoreToCamelCase 下换线转驼峰

func Unique

func Unique(ss []string) (result []string)

Unique 去除切片重复数据

Types

This section is empty.

Jump to

Keyboard shortcuts

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