Documentation ¶
Index ¶
- func Append(data ...interface{}) string
- func Byte2Str(b []byte) string
- func ChangeBetween(source, beginStr, endStr, newStr string, lastIndexOf bool) string
- func DelStr(source string, sub ...string) string
- func FirstLower(s string) string
- func FirstUpper(s string) string
- func Has(source, str string) bool
- func HasEnd(str, end string) bool
- func HasStart(str, start string) bool
- func HasStr(data interface{}, str string) bool
- func IsAllChineseChar(str string) bool
- func IsCompriseChineseChar(str string) bool
- func IsLowerStart(s string) bool
- func IsUpperStart(s string) bool
- func Lower(str string) string
- func RemoveBetween(source, beginStr, endStr string, lastIndexOf bool) string
- func ReplaceAll(source, old, new string) string
- func SubBetween(source, beginStr, endStr string, lastIndexOf bool) string
- func SubMaxStr(source string, beginIndex, endMaxIndex int) string
- func SupplyZero(formatLong int, data interface{}) string
- func ToStr(data interface{}) string
- func Trim(str string) string
- func TrimAttribute(data map[string]interface{})
- func Upper(str string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChangeBetween ¶
*
- 替换指定字符串间的内容(仅一次),并返回新值
- @param source 源
- @param beginStr 开始字符串
- @param endStr 结束字符串
- @param newStr 新字符串
- @param lastIndexOf 是否从后面开始去截取字符串
- @return
func RemoveBetween ¶
*
- 移除指定字符串间的内容(仅一次),并返回新值
- @param source 源
- @param beginStr 开始字符串
- @param endStr 结束字符串
- @param lastIndexOf 是否从后面开始去截取字符串
- @return
func SubBetween ¶
*
- 截取指定字符串间的内容
- @param source 源
- @param beginStr 开始字符串
- @param endStr 结束字符串
- @param lastIndexOf 是否从后面开始去截取字符串
- @return
func SubMaxStr ¶
*
- 截取字符串
- @param source 源字符串
- @param beginIndex 开始位置 0开始
- @param endMaxIndex 最大结束位置,超出则取字符串最大位置
- @return
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.