修复换行符

This commit is contained in:
xmengnet 2024-04-14 15:24:35 +08:00
parent af666fee95
commit 673dd3eb76
2 changed files with 1 additions and 1 deletions

BIN
go-bot Executable file

Binary file not shown.

View file

@ -19,7 +19,7 @@ func (a *Pkg) GetMsg() string {
return "请输入包名 如:/pkg linux 查询 linux 相关软件"
}
// 去除换行符
raw_msg := strings.TrimRight(a.RawMsg, "\\n")
raw_msg := strings.TrimRight(a.RawMsg, "\n")
fmt.Println("raw_msg:", raw_msg)
parms := strings.Split(raw_msg, " ")