fmt.Print("Text to send: ")
text, _ := readerConsole.ReadString('\n')
sizen := (int)(unsafe.Sizeof(text))
fmt.Print(sizen)
var bs []byte
binary.BigEndian.PutUint32(bs, sizen)
b := []byte(text)
a: = append(bs, b...)
Go格式化程序在追加时说错误“语法错误:标签后缺少语句”
宝慕林4294392
相关分类