2018年5月28日

golang 类型转换

摘要: 1 import ( 2 "bytes" 3 "encoding/binary" 4 "encoding/gob" 5 "fmt" 6 ) 7 8 func str_to_byte(src string) []byte { 9 //strSlice := []string{src} 10 buffer ... 阅读全文

posted @ 2018-05-28 18:44 阳台 阅读(244) 评论(0) 推荐(0) 编辑

golang 小例子

摘要: import ( "bytes" "encoding/binary" "encoding/gob" "fmt" ) func str_to_byte(src string) []byte { //strSlice := []string{src} buffer := &bytes.Buffer{} 阅读全文

posted @ 2018-05-28 18:36 阳台 阅读(453) 评论(0) 推荐(0) 编辑

导航