Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrUnmarshalRequired = &ErrorMatch{Code: 100, Message: "Unmarshal", Regexp: regexp.MustCompile(`^Required field '[^']+' is missing!`)} ErrUnmarshalBadline = &ErrorMatch{Code: 101, Message: "Unmarshal", Regexp: regexp.MustCompile(`^Bad line: '`)} ErrMarshalUnknown = &ErrorMatch{Code: 200, Message: "Marshal"} ErrParseDepend = &ErrorMatch{Code: 300, Message: "Parse depend"} )
错误匹配处理
Functions ¶
Types ¶
type Control ¶
Control 操作文件
func (*Control) DependDelete ¶
DependDelete 删除包依赖
type ErrorMatch ¶
func (*ErrorMatch) Error ¶
func (em *ErrorMatch) Error() string
func (*ErrorMatch) Match ¶
func (em *ErrorMatch) Match(value string) bool
func (*ErrorMatch) Wrap ¶
func (em *ErrorMatch) Wrap(err error) error
Click to show internal directories.
Click to hide internal directories.