Documentation
¶
Index ¶
- func AnythingToString(v interface{}) string
- func IsDigit(ch rune) bool
- func IsLetter(ch rune) bool
- func IsLowerLetter(ch rune) bool
- func IsSpace(ch rune) bool
- func IsUpperLetter(ch rune) bool
- func IsWhitesapce(ch rune) bool
- func StartsWith(s string, substr string) bool
- func TryParseBool(s string, defaultValue bool) bool
- func TryParseFloat32(s string, defaultValue float32) float32
- func TryParseFloat64(s string, defaultValue float64) float64
- func TryParseInt(s string, defaultValue int) int
- func TryParseInt64(s string, defaultValue int64) int64
- func TryParseUint(s string, defaultValue uint) uint
- func TryParseUint64(s string, defaultValue uint64) uint64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TryParseBool ¶ added in v1.8.0
尝试解析bool,如果失败则返回默认值
func TryParseFloat32 ¶ added in v1.8.0
尝试解析float32,如果失败则返回默认值
func TryParseFloat64 ¶ added in v1.8.0
尝试解析float64,如果失败则返回默认值
func TryParseInt ¶ added in v1.8.0
尝试解析int,如果失败则返回默认值
func TryParseInt64 ¶ added in v1.8.0
尝试解析int64,如果失败则返回默认值
func TryParseUint ¶ added in v1.8.0
尝试解析uint,如果失败则返回默认值
func TryParseUint64 ¶ added in v1.8.0
尝试解析uint64,如果失败则返回默认值
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.