格式化go相关代码

Signed-off-by: liutuantuan <liutuantuan1@huawei.com>
This commit is contained in:
liutuantuan 2024-10-21 09:55:06 +08:00
parent 897f9e66a7
commit 1e914ff517
3 changed files with 1070 additions and 433 deletions

View File

@ -53,7 +53,9 @@ example: ```fotff flash -p pkgDir -d 7001005458323933328a01fce1dc3800```
###### tips
1. 刷机、测试具体实现可能涉及到[hdc_std](https://gitee.com/openharmony/developtools_hdc)、[xdevice](https://gitee.com/openharmony/testfwk_xdevice),安装和配置请参考对应工具的相关页面。
1.
刷机、测试具体实现可能涉及到[hdc_std](https://gitee.com/openharmony/developtools_hdc)、[xdevice](https://gitee.com/openharmony/testfwk_xdevice)
,安装和配置请参考对应工具的相关页面。
2. xdevice运行需要Python运行环境请提前安装。
3. 刷机、测试过程需要对应开发板的驱动程序,请提前安装。

View File

@ -1,28 +1,28 @@
module fotff
go 1.19
go 1.19
require (
code.cloudfoundry.org/archiver v0.0.0-20221114120234-625eff81a7ef
github.com/Unknwon/goconfig v1.0.0
github.com/huandu/go-clone v1.4.1
github.com/jedib0t/go-pretty/v6 v6.4.3
github.com/patrickmn/go-cache v2.1.0+incompatible
github.com/pkg/sftp v1.13.5
github.com/sirupsen/logrus v1.9.0
github.com/spf13/cobra v1.6.1
golang.org/x/crypto v0.3.0
gopkg.in/gomail.v2 v2.0.0-20160411212932-81ebce5c23df
)
require (
code.cloudfoundry.org/archiver v0.0.0-20221114120234-625eff81a7ef
github.com/Unknwon/goconfig v1.0.0
github.com/huandu/go-clone v1.4.1
github.com/jedib0t/go-pretty/v6 v6.4.3
github.com/patrickmn/go-cache v2.1.0+incompatible
github.com/pkg/sftp v1.13.5
github.com/sirupsen/logrus v1.9.0
github.com/spf13/cobra v1.6.1
golang.org/x/crypto v0.3.0
gopkg.in/gomail.v2 v2.0.0-20160411212932-81ebce5c23df
)
require (
github.com/cyphar/filepath-securejoin v0.2.3 // indirect
github.com/inconshreveable/mousetrap v1.0.1 // indirect
github.com/kr/fs v0.1.0 // indirect
github.com/mattn/go-runewidth v0.0.13 // indirect
github.com/rivo/uniseg v0.2.0 // indirect
github.com/smartystreets/goconvey v1.7.2 // indirect
github.com/spf13/pflag v1.0.5 // indirect
golang.org/x/sys v0.2.0 // indirect
gopkg.in/alexcesaro/quotedprintable.v3 v3.0.0-20150716171945-2caba252f4dc // indirect
)
require (
github.com/cyphar/filepath-securejoin v0.2.3 // indirect
github.com/inconshreveable/mousetrap v1.0.1 // indirect
github.com/kr/fs v0.1.0 // indirect
github.com/mattn/go-runewidth v0.0.13 // indirect
github.com/rivo/uniseg v0.2.0 // indirect
github.com/smartystreets/goconvey v1.7.2 // indirect
github.com/spf13/pflag v1.0.5 // indirect
golang.org/x/sys v0.2.0 // indirect
gopkg.in/alexcesaro/quotedprintable.v3 v3.0.0-20150716171945-2caba252f4dc // indirect
)