update go mod

This commit is contained in:
Ivy1996-encode 2021-02-20 13:19:56 +08:00
parent 51d0e18c8a
commit d38ca9e02e
3 changed files with 28 additions and 3 deletions

View File

@ -1,2 +1,27 @@
# openwechat
wechat client for golang
golang版个人微信号API
**使用前提**
1、你的微信号必须能够在微信网页版成功登录https://wx.qq.com/
2、golang版本大于等于1.11
### 快速开始
#### 登录微信
```golang
```

View File

@ -6,10 +6,10 @@ import (
)
func TestDefaultBot(t *testing.T) {
bot := DefaultBot()
messageHandler := func(message *Message) {
fmt.Println(message)
}
bot := DefaultBot()
bot.RegisterMessageHandler(messageHandler)
bot.UUIDCallback = PrintlnQrcodeUrl
if err := bot.Login(); err != nil {

2
go.mod
View File

@ -1,3 +1,3 @@
module openwechat
module github.com/Ivy1996-encode/openwechat
go 1.15