gitee.com/sy_183/go-common@v1.0.5-0.20231205030221-958cfe129b47/errors/invalid-modify.go (about) 1 package errors 2 3 import "fmt" 4 5 type InvalidModify struct { 6 Target string 7 } 8 9 func (e *InvalidModify) Error() string { 10 if e == nil { 11 return "<nil>" 12 } 13 return fmt.Sprintf("%s不可以被修改", e.Target) 14 }