cloudwego / cwgo

An all-in-one code generation tool for CloudWeGo
Apache License 2.0
108 stars 54 forks source link
go tool

cwgo

中文 | English

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

Install cwgo Tool

# Go 1.15 and earlier version
GO111MODULE=on GOPROXY=https://goproxy.cn/,direct go get github.com/cloudwego/cwgo@latest

# Go 1.16 and later version
GOPROXY=https://goproxy.cn/,direct go install github.com/cloudwego/cwgo@latest

Detailed Documentation

Quick Start

Command Line Tool

Contains detailed documentation on how cwgo CLI works, see this document

Template Extension

Instructions on how to customize templates can be found in the document.

Layout

This documents explains Layouts generation and introduction, see this document.

Client

The document details on how generated clients that have been encapsulated can be used, see this document

DB

Details information containing how to use cwgo tool to generate relational CURD codes, see this document

Doc

Including how to use the cwgo tool to generate document database CURD code, see this document.

Api-list

supports getting the relationship between routes and (route registration) code by analyzing Hertz project code, see this document

Server

Including how to generate RPC Server and HTTP Server code, see this document.

auto-completion

Including how to enable command line auto-completion function, see this document.

Open Source License

cwgo is based on Apache License 2.0, Apache License. See Licenses for the open source licenses of the three party components on which it depends.

Contact Us