yeeStrings

package
v0.0.0-...-89bd919 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddURLParam

func AddURLParam(url, name, value string) string

AddURLParam 添加URL参数

func IntArrayToString

func IntArrayToString(arr []int, sep string) string

IntArrayToString 将int切片组合成string

func IsInSlice

func IsInSlice(slice []string, s string) bool

IsInSlice 字符串是否在slice中

func MapFunc

func MapFunc(data []string, f func(string) string) []string

MapFunc 对传入的slice的每一个元素进行函数操作

func StringArrayToString

func StringArrayToString(arr []string, sep string) string

StringArrayToString 将string切片组合成string

func StringToIntArray

func StringToIntArray(s, sep string) []int

StringToIntArray 将字符串分割为int切片 有错误忽略

func StringToStringArray

func StringToStringArray(s, sep string) []string

StringToStringArray 将字符串分割为string切片

func StripHTMLTags

func StripHTMLTags(text string) string

StringStripHTMLTags 过滤掉HTML/XML标签

Types

This section is empty.

Jump to

Keyboard shortcuts

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