gstr

package
v0.0.0-...-3631402 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2018 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

字符串操作.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InArray

func InArray(a []string, s string) bool

判断字符串是否在数组中

func IsLetterLower

func IsLetterLower(b byte) bool

判断给定字符是否小写

func IsLetterUpper

func IsLetterUpper(b byte) bool

判断给定字符是否大写

func IsNumeric

func IsNumeric(s string) bool

判断锁给字符串是否为数字

func LcFirst

func LcFirst(s string) string

字符串首字母转换为小写

func Replace

func Replace(origin, search, replace string) string

字符串替换

func ReplaceByMap

func ReplaceByMap(origin string, replaces map[string]string) string

使用map进行字符串替换

func SearchArray

func SearchArray(a []string, s string) int

便利数组查找字符串索引位置,如果不存在则返回-1,使用完整遍历查找

func UcFirst

func UcFirst(s string) string

字符串首字母转换为大写

Types

This section is empty.

Jump to

Keyboard shortcuts

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