Documentation
¶
Index ¶
- func Bytes2Float64(bytes interface{}) (float64, error)
- func Bytes2Int(bytes interface{}) (int, error)
- func Bytes2String(bytes interface{}) string
- func Contains(str string, ss []string) bool
- func GetBytes(bytes interface{}) []byte
- func LCS(s1 string, s2 string) string
- func String2Bytes(s string) []byte
- func String2Float64(s string) (float64, error)
- func String2Int(s string) (int, error)
- func String2Int64(str string) int64
- func StringToFloat64(s string) float64
- func StringToInt(s string) int
- func StringToUint(s string) uint
- func ToBytes(str string) []byte
- func ToStr(bytes []byte) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Bytes2Float64 ¶ added in v0.2.25
func Bytes2String ¶ added in v0.2.25
func Bytes2String(bytes interface{}) string
func LCS ¶
LCS gets the longest common substring of s1 and s2. 最长公共子串 Refers to http://en.wikibooks.org/wiki/Algorithm_Implementation/Strings/Longest_common_substring.
func String2Bytes ¶ added in v0.2.25
func String2Float64 ¶ added in v0.2.25
func String2Int ¶ added in v0.2.25
func String2Int64 ¶ added in v0.2.25
func StringToFloat64 ¶ added in v0.2.25
func StringToInt ¶ added in v0.2.25
func StringToUint ¶ added in v0.2.25
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.