format errors (#189)

This commit is contained in:
多吃点苹果 2023-01-10 09:54:01 +08:00 committed by GitHub
parent f49c0367ad
commit 2681b51702
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 7 deletions

View File

@ -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

View File

@ -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, )