From af3b4d643989aa93706c12443ffe22de2a638f81 Mon Sep 17 00:00:00 2001 From: Mmx233 Date: Sun, 4 Jun 2023 20:34:50 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E6=9B=B4=E6=96=B0=20module=20=E4=BD=BF?= =?UTF-8?q?=E7=94=A8=E6=8C=87=E5=AF=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 43d559d..f32466e 100644 --- a/README.md +++ b/README.md @@ -169,7 +169,7 @@ import ( func main() { //具体用法请查看 struct 注释 - conf:=&srun.Conf{ + client:=srun.New(&srun.Conf{ Https: false, Client: nil, LoginInfo: srun.LoginInfo{ @@ -186,15 +186,15 @@ func main() { Enc: "", }, }, - } + }) - online, clientIP, e := srun.LoginStatus(conf) + online, ip, e := client.LoginStatus() if e!=nil { panic(e) } if !online { - e=srun.DoLogin(clientIP, conf) + e=client.DoLogin(ip) if e!=nil { panic(e) }