摘要:
一,代码: 1,自定义错误类: package config import ( "fmt" ) //定义错误代码和错误信息 type MyError struct { Code int Msg string } //需要定义通用的Error()方法 func (e MyError) Error() 阅读全文
posted @ 2024-11-15 11:28
刘宏缔的架构森林
阅读(72)
评论(0)
推荐(0)
浙公网安备 33010602011771号