修复换行符
This commit is contained in:
parent
af666fee95
commit
673dd3eb76
2 changed files with 1 additions and 1 deletions
BIN
go-bot
Executable file
BIN
go-bot
Executable file
Binary file not shown.
|
@ -19,7 +19,7 @@ func (a *Pkg) GetMsg() string {
|
||||||
return "请输入包名 如:/pkg linux 查询 linux 相关软件"
|
return "请输入包名 如:/pkg linux 查询 linux 相关软件"
|
||||||
}
|
}
|
||||||
// 去除换行符
|
// 去除换行符
|
||||||
raw_msg := strings.TrimRight(a.RawMsg, "\\n")
|
raw_msg := strings.TrimRight(a.RawMsg, "\n")
|
||||||
fmt.Println("raw_msg:", raw_msg)
|
fmt.Println("raw_msg:", raw_msg)
|
||||||
parms := strings.Split(raw_msg, " ")
|
parms := strings.Split(raw_msg, " ")
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue