format errors (#189)
This commit is contained in:
parent
f49c0367ad
commit
2681b51702
@ -26,6 +26,12 @@ var (
|
||||
|
||||
// NetworkErr define wechat network error
|
||||
NetworkErr = errors.New("wechat network error")
|
||||
|
||||
// ErrNoSuchUserFoundError define no such user found error
|
||||
ErrNoSuchUserFoundError = errors.New("no such user found")
|
||||
|
||||
// ErrLoginTimeout define login timeout error
|
||||
ErrLoginTimeout = errors.New("login timeout")
|
||||
)
|
||||
|
||||
// Error impl error interface
|
||||
|
@ -1,7 +1,6 @@
|
||||
package openwechat
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"regexp"
|
||||
)
|
||||
|
||||
@ -106,12 +105,6 @@ const (
|
||||
StatusWait = "408"
|
||||
)
|
||||
|
||||
// errors
|
||||
var (
|
||||
ErrNoSuchUserFoundError = errors.New("no such user found")
|
||||
ErrLoginTimeout = errors.New("login timeout")
|
||||
)
|
||||
|
||||
// ALL 跟search函数搭配
|
||||
//
|
||||
// friends.Search(openwechat.ALL, )
|
||||
|
Loading…
x
Reference in New Issue
Block a user