zl程序教程

您现在的位置是:首页 >  工具

当前栏目

[FAQ] Golang error strings should not be capitalized or end with punctuation

FAQGolang Error not with or be end
2023-09-14 09:02:26 时间

通过llama.cpp与羊驼聊天的网页界面- 详解 Serge 的启动使用

 

当我们在 Golang 中使用 errors.New("Aaa.") 形式返回 error 信息时,文字内容不应该大写字母开头或者标点符号结尾

 

所以这样是可以的 errors.New("aaa")

 

Refer:Golang常见错误

Link:https://www.cnblogs.com/farwish/p/14226732.html