From 078d6cbd4d0a4d0236b19d3140daf2e557889ec4 Mon Sep 17 00:00:00 2001 From: Mmx233 Date: Wed, 1 Mar 2023 19:04:59 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E6=9B=B4=E6=96=B0=20module=20=E5=BC=95?= =?UTF-8?q?=E7=94=A8=E7=A4=BA=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index c564044..3c2b178 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ OpenWrt 特供插件: [Mmx233/BitSrunLoginGo_Openwrt](https://github.com/Mmx23 支持 `json`、`yaml`、`yml`、`toml`、`hcl`、`tfvars` 等,仅对 `json`和`yaml` 进行了优化与测试 ```shell -./autoLogin --config=/demo/i.json +./bitsrun --config=/demo/i.json ``` 其他 Flags: @@ -156,12 +156,12 @@ golang 支持的系统与架构请自行查询 package main import ( - "github.com/Mmx233/BitSrunLoginGo/v1" + "github.com/Mmx233/BitSrunLoginGo/pkg/srun" ) func main() { //具体用法请查看struct注释 - conf:=&BitSrun.Conf{ + conf:=&srun.Conf{ Https: false, Client: nil, LoginInfo: BitSrun.LoginInfo{ @@ -180,13 +180,13 @@ func main() { }, } - online, clientIP, e := BitSrun.LoginStatus(conf) + online, clientIP, e := srun.LoginStatus(conf) if e!=nil { panic(e) } if !online { - e=BitSrun.DoLogin(clientIP, conf) + e=srun.DoLogin(clientIP, conf) if e!=nil { panic(e) }