Skip to content

Commit

Permalink
完善中英文文档
Browse files Browse the repository at this point in the history
  • Loading branch information
TommyLemon committed Mar 16, 2023
1 parent decc5f4 commit a605c7e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ UnitAuto Go Library for remote dependencies with GitHub repo, etc.
<img width="1495" alt="image" src="https://user-images.githubusercontent.com/5738175/225635800-5909dfb7-17c1-45e2-94e5-7c2251aa4500.png">
<img width="1495" alt="image" src="https://user-images.githubusercontent.com/5738175/225636134-a4daf4ec-9304-44d2-b09a-28497c815188.png">
<img width="1495" alt="image" src="https://user-images.githubusercontent.com/5738175/225636569-b508fa19-3973-4655-bd49-68742c4d09d0.png">
<img width="1495" alt="image" src="https://user-images.githubusercontent.com/5738175/225632360-ce953a58-22b1-4b4e-8b3d-0083edebc71a.png">

#### 1. 在 go.mod 中添加 GitHub 仓库
#### 1. Add the GitHub repository to go.mod
Expand All @@ -33,7 +32,12 @@ UnitAuto Go Library for remote dependencies with GitHub repo, etc.
https://github.com/TommyLemon/UnitAuto

由于 Go 的反射限制,目前做不到像 Java, Kotlin 版几乎绝对零代码,还需要注册 func 和 struct 的实例,<br />
不过注册代码可以通过 UnitAuto-Admin 前端管理网页设置项 \[查看、同步方法文档] 来生成,复制粘贴到被测项目中:
不过注册代码可以通过 UnitAuto-Admin 前端管理网页设置项 \[查看、同步方法文档] 来生成,复制粘贴到被测项目中:<br />
Due to the limitation of Go, it's not almost absolutely coding free like Java and Kotlin, <br />
and you need to write few code to register the funcs and structs to be tested. <br />
However, the code can be generated by clicking the setting item [View/Sync doc] of UnitAuto-Admin, <br />
then you can copy and pasted the "ginCode" into the project under test instead of coding: <br />

https://github.com/TommyLemon/unitauto-go/blob/main/main.go
<img width="1495" alt="image" src="https://user-images.githubusercontent.com/5738175/225632360-ce953a58-22b1-4b4e-8b3d-0083edebc71a.png">
<img width="1495" alt="image" src="https://user-images.githubusercontent.com/5738175/225635146-f8dab9d1-76c5-421a-b45e-732e4923fd4d.png">
Expand Down

0 comments on commit a605c7e

Please sign in to comment.