Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update dependency version and readme #178

Merged
merged 1 commit into from
Apr 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

[中文](./README_CN.md) | English

cwgo is an all-in-one code generation tool for CloudWeGo. It integrates the advantages of various components to improve
the developer experience. The main features of cwgo tool are as follows:
cwgo is an all-in-one code generation tool for CloudWeGo. It integrates the advantages of the kitex and hz tools to improve
the development efficiency and experience. The main features of cwgo tool are as follows:

## Tool Characteristics

Expand All @@ -21,7 +21,7 @@ the developer experience. The main features of cwgo tool are as follows:

- Support for generating document database code

The cwgo tool supports generating document database CURD code based on IDL (Thrift/protobuf), and currently supports Mongodb. Users no longer need to encapsulate the cumbersome CURD code by themselves, which improves the user's work efficiency.
The cwgo tool supports generating document database CURD code based on IDL (Thrift/protobuf), and currently supports MongoDB. Users no longer need to encapsulate the cumbersome CURD code by themselves, which improves the user's work efficiency.

- Support for generating command line automatic completion scripts

Expand All @@ -31,9 +31,9 @@ the developer experience. The main features of cwgo tool are as follows:

Cwgo supports analyzing Hertz project code to obtain the relationship between routing and (routing registration) code.

- Support fallback to Kitex, Hz tools
- Support fallback to kitex, Hz tools

If you were a Kitex or Hz user before, you can still use the cwgo tool. The cwgo tool supports the fallback function and can be used as Kitex and Hz, truly realizing a tool to generate all.
If you were a kitex or Hz user before, you can still use the cwgo tool. The cwgo tool supports the fallback function and can be used as kitex and Hz, truly realizing a tool to generate all.

## Install cwgo Tool

Expand All @@ -59,15 +59,15 @@ Instructions on how to customize templates can be found in the [document](https:

### Layout

This documents explains Layouts discussing how layout are generated, see this [document](https://www.cloudwego.io/docs/cwgo/tutorials/layout/).
This documents explains Layouts generation and introduction, see this [document](https://www.cloudwego.io/docs/cwgo/tutorials/layout/).

### Client

The document details on how Generated Clients that have been Encapsulated Can be used, see this [document](https://www.cloudwego.io/docs/cwgo/tutorials/client/)
The document details on how generated clients that have been encapsulated can be used, see this [document](https://www.cloudwego.io/docs/cwgo/tutorials/client/)

### DB

Details information containing HOW TO Use cwgo TOOL To Generate relational Curd Codes, see this [document](https://www.cloudwego.io/docs/cwgo/tutorials/db/)
Details information containing how to use cwgo tool to generate relational CURD codes, see this [document](https://www.cloudwego.io/docs/cwgo/tutorials/db/)

### Doc

Expand All @@ -83,12 +83,12 @@ Including how to generate RPC Server and HTTP Server code, see this [document](h

### auto-completion

Including how to enable command line auto completion function, see this [document](https://www.cloudwego.cn/docs/cwgo/tutorials/auto-completion/).
Including how to enable command line auto-completion function, see this [document](https://www.cloudwego.cn/docs/cwgo/tutorials/auto-completion/).

## Open Source License

cwgo is based on Apache License 2.0, [Apache License](https://github.com/cloudswego/cwgo/blob/main/LICENSE). Its dependent
third-party component open-source licenses will include Licenses.
cwgo is based on Apache License 2.0, [Apache License](https://github.com/cloudswego/cwgo/blob/main/LICENSE).
See [Licenses](https://github.com/cloudwego/cwgo/blob/main/licenses) for the open source licenses of the three party components on which it depends.

## Contact Us

Expand Down
11 changes: 5 additions & 6 deletions README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@

中文 | [English](./README.md)

cwgo 是 CloudWeGo All in one 代码生成工具,整合了各个组件的优势,以提高开发者的体验。
cwgo 工具可以方便生成工程化模版,其主要功能特点如下:
cwgo 是 CloudWeGo All in one 代码生成工具,整合了 kitex 和 hz 工具的优势,以提高开发者的编码效率和使用体验。其主要功能特点如下:

## 工具特点

Expand All @@ -21,7 +20,7 @@ cwgo 工具可以方便生成工程化模版,其主要功能特点如下:

- 支持生成文档类数据库代码

cwgo 工具支持基于 IDL (thrift/protobuf) 生成文档类数据库 CURD 代码,目前支持 Mongodb。用户无需再自行封装繁琐的 CURD 代码,提高用户的工作效率。
cwgo 工具支持基于 IDL (thrift/protobuf) 生成文档类数据库 CURD 代码,目前支持 MongoDB。用户无需再自行封装繁琐的 CURD 代码,提高用户的工作效率。

- 支持生成命令行自动补全脚本

Expand All @@ -31,9 +30,9 @@ cwgo 工具可以方便生成工程化模版,其主要功能特点如下:

cwgo 支持通过分析 Hertz 项目代码获取路由和(路由注册)代码的关系。

- 支持回退为 Kitex、Hz 工具
- 支持回退为 kitex、Hz 工具

如果之前是 Kitex、Hz 的用户,仍然可以使用 cwgo 工具。cwgo 工具支持回退功能,可以当作 Kitex、Hz 使用,真正实现一个工具生成所有。
如果之前是 kitex、Hz 工具的用户,仍然可以使用 cwgo 工具。cwgo 工具支持回退功能,可以当作 kitex、Hz 使用,真正实现一个工具生成所有。

## 安装 cwgo 工具

Expand Down Expand Up @@ -102,7 +101,7 @@ cwgo 基于[Apache License 2.0](https://github.com/cloudwego/cwgo/blob/main/LICE
## Landscapes

<p align="center">
<img src="https://landscape.cncf.io/images/left-logo.svg" width="150"/>&nbsp;&nbsp;<img src="https://landscape.cncf.io/images/right-logo.svg" width="200"/>
<img src="https://landscape.cncf.io/images/cncf-landscape-horizontal-color.svg" width="150"/>&nbsp;&nbsp;<img src="https://www.cncf.io/wp-content/uploads/2023/04/cncf-main-site-logo.svg" width="200"/>
<br/><br/>
CloudWeGo 丰富了 <a href="https://landscape.cncf.io/">CNCF 云原生生态</a>。
</p>
54 changes: 23 additions & 31 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@

require (
github.com/Masterminds/sprig/v3 v3.2.3
github.com/bytedance/sonic v1.11.1
github.com/cloudwego/hertz/cmd/hz v0.6.5
github.com/cloudwego/kitex v0.9.0
github.com/cloudwego/thriftgo v0.3.6
github.com/bytedance/sonic v1.11.2
github.com/cloudwego/hertz/cmd/hz v0.8.1
github.com/cloudwego/kitex v0.9.1
github.com/cloudwego/thriftgo v0.3.10
github.com/fatih/camelcase v1.0.0
github.com/urfave/cli/v2 v2.23.5
golang.org/x/tools v0.6.0
gorm.io/driver/mysql v1.5.1
gorm.io/driver/postgres v1.4.5
gorm.io/driver/sqlite v1.4.3
gorm.io/driver/sqlserver v1.4.1
gorm.io/gen v0.3.18
gorm.io/gorm v1.25.1
github.com/urfave/cli/v2 v2.27.1
golang.org/x/tools v0.20.0
gorm.io/driver/mysql v1.5.6
gorm.io/driver/postgres v1.5.7
gorm.io/driver/sqlite v1.5.5
gorm.io/driver/sqlserver v1.5.3
gorm.io/gen v0.3.26
gorm.io/gorm v1.25.9
)

require (
Expand All @@ -27,7 +27,7 @@
github.com/chenzhuoyu/iasm v0.9.1 // indirect
github.com/cloudwego/fastpb v0.0.4 // indirect
github.com/cpuguy83/go-md2man/v2 v2.0.2 // indirect
github.com/dlclark/regexp2 v1.10.0 // indirect
github.com/dlclark/regexp2 v1.11.0 // indirect
github.com/go-sql-driver/mysql v1.7.0 // indirect
github.com/golang-sql/civil v0.0.0-20220223132316-b832511892a9 // indirect
github.com/golang-sql/sqlexp v0.1.0 // indirect
Expand All @@ -37,45 +37,37 @@
github.com/hashicorp/go-version v1.5.0 // indirect
github.com/huandu/xstrings v1.3.3 // indirect
github.com/imdario/mergo v0.3.11 // indirect
github.com/jackc/chunkreader/v2 v2.0.1 // indirect
github.com/jackc/pgconn v1.13.0 // indirect
github.com/jackc/pgio v1.0.0 // indirect
github.com/jackc/pgpassfile v1.0.0 // indirect
github.com/jackc/pgproto3/v2 v2.3.1 // indirect
github.com/jackc/pgservicefile v0.0.0-20200714003250-2b9c44734f2b // indirect
github.com/jackc/pgtype v1.12.0 // indirect
github.com/jackc/pgx/v4 v4.17.2 // indirect
github.com/jackc/pgservicefile v0.0.0-20221227161230-091c0ba34f0a // indirect

Check warning on line 41 in go.mod

View workflow job for this annotation

GitHub Actions / compliant

"ba" should be "by" or "be".
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里 CI 没过,不要用 go get -u 更新依赖,容易出问题

github.com/jackc/pgx/v5 v5.4.3 // indirect
github.com/jhump/protoreflect v1.12.0 // indirect
github.com/jinzhu/inflection v1.0.0 // indirect
github.com/jinzhu/now v1.1.5 // indirect
github.com/klauspost/cpuid/v2 v2.2.4 // indirect
github.com/kr/pretty v0.3.0 // indirect
github.com/mattn/go-sqlite3 v1.14.15 // indirect
github.com/microsoft/go-mssqldb v0.17.0 // indirect
github.com/kr/text v0.2.0 // indirect
github.com/mattn/go-sqlite3 v1.14.17 // indirect
github.com/microsoft/go-mssqldb v1.6.0 // indirect
github.com/mitchellh/copystructure v1.0.0 // indirect
github.com/mitchellh/reflectwalk v1.0.0 // indirect
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
github.com/rogpeppe/go-internal v1.8.1 // indirect
github.com/russross/blackfriday/v2 v2.1.0 // indirect
github.com/shopspring/decimal v1.2.0 // indirect
github.com/spf13/cast v1.3.1 // indirect
github.com/stretchr/testify v1.8.4 // indirect
github.com/twitchyliquid64/golang-asm v0.15.1 // indirect
github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 // indirect
golang.org/x/arch v0.2.0 // indirect
golang.org/x/crypto v0.18.0 // indirect
golang.org/x/mod v0.8.0 // indirect
golang.org/x/net v0.20.0 // indirect
golang.org/x/sync v0.5.0 // indirect
golang.org/x/sys v0.16.0 // indirect
golang.org/x/mod v0.17.0 // indirect
golang.org/x/sync v0.7.0 // indirect
golang.org/x/sys v0.19.0 // indirect
golang.org/x/text v0.14.0 // indirect
google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f // indirect
google.golang.org/grpc v1.55.0-dev // indirect
google.golang.org/protobuf v1.28.1 // indirect
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
gorm.io/datatypes v1.0.7 // indirect
gorm.io/datatypes v1.1.1-0.20230130040222-c43177d3cf8c // indirect
gorm.io/hints v1.1.0 // indirect
gorm.io/plugin/dbresolver v1.3.0 // indirect
gorm.io/plugin/dbresolver v1.5.0 // indirect
)
Loading
Loading