Documentation ¶
Index ¶
- func ArrayToString(a []int, delim string) string
- func Bytes2String(b []byte) string
- func BytesPointer(b []byte) unsafe.Pointer
- func CallStack(skip int) string
- func DumpStacks()
- func GetCallStack() string
- func Join(a []interface{}, sep string) string
- func ReverseString(s string) string
- func ReverseWords(s string) string
- func String2Bytes(s string) []byte
- func StringPointer(s string) unsafe.Pointer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ArrayToString ¶
func Bytes2String ¶
不要在使用[]byte(string) 或 string([]byte)这类类型转换 http://www.flysnow.org/2017/07/06/go-in-action-unsafe-pointer.html https://studygolang.com/articles/2909 unsafe.Pointer 类似 void*
func GetCallStack ¶
func GetCallStack() string
func ReverseString ¶
func ReverseWords ¶
func String2Bytes ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.