Documentation
¶
Overview ¶
字符串常用函数封装,如转数字、截取、修建、替换、切割等.
Index ¶
- func BytesToStr(b []byte) string
- func Contains(str string, of string) bool
- func EndWith(str string, of string) bool
- func Format(format string, args ...interface{}) string
- func IndexOf(str string, of string) int
- func Int64ToString(itr int64) string
- func IsEmpty(str string) bool
- func LastIndexOf(str string, of string) int
- func Replace(str string, from string, to string) string
- func Split(str string, sep string) []string
- func StartWith(str string, of string) bool
- func StrToBytes(s string) []byte
- func Sub(str string, from int, to int) string
- func ToFixed(float interface{}, fixed ...int) string
- func ToInt(str string) int
- func ToString(itr int) string
- func Trim(str string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.