|
@@ -2,6 +2,7 @@ package fserr
|
|
|
|
|
|
|
|
type Option func(*withCode)
|
|
type Option func(*withCode)
|
|
|
|
|
|
|
|
|
|
+// MsgOption 替换错误码默认的提示信息
|
|
|
func MsgOption(msg string) Option {
|
|
func MsgOption(msg string) Option {
|
|
|
return func(w *withCode) {
|
|
return func(w *withCode) {
|
|
|
w.Msg = msg
|
|
w.Msg = msg
|