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) }