docs: 优化 module 使用示例

This commit is contained in:
Mmx
2023-11-10 10:04:53 +08:00
committed by GitHub
parent 15d9b703e4
commit f33150c5fe

View File

@@ -191,15 +191,15 @@ func main() {
},
})
online, ip, e := client.LoginStatus()
if e!=nil {
panic(e)
online, ip, err := client.LoginStatus()
if err != nil {
panic(err)
}
if !online {
e=client.DoLogin(ip)
if e!=nil {
panic(e)
err = client.DoLogin(ip)
if err != nil {
panic(err)
}
}
}