# README
qylibrary.gcodex包
说明
- Golang 版本要求最低 1.13
- 使用该库需要设置如下环境变量
- 使用 wire 框架实现
GOPROXY=https://goproxy.io,direct GOSUMDB=off
- 可通过如下指令引入依赖库
go get [email protected]:super-rain/qylibrary.git
功能
以下为基础目录,每个包的使用方法见包下ReadMe说明及Example
├── gcodex │ ├── README.md │ ├── doc.go │ ├── errors.go │ ├── example_test.go │ ├── gcodex.go │ ├── gcodex_test.go │ └── types.go
设计实现
领域建模(PB文件)->CLI命令->meta data->go yacc/go generate->Source code
TODO
- grpc
- go generate
- go doc comment
- gpromise
使用
- 输入
gcodex generate
命令生成 ent 模版源码文件 - 进入 ./ent 同级目录,执行
go generate ./ent
或者 在根目录执行“go run -mod=mod entgo.io/ent/cmd/ent generate ./dist/ent/schema
” 生成模型 CRUD 代码 gocodex generate --type=svc
生成erpo/service/type/endpoint/transport
源码文件gcpdex generate --type=pb
生成 grpc 模版源码文件
版本说明
# Functions
No description provided by the author
No description provided by the author
go generate TODO:根据 AST 生成 service 层源码.
No description provided by the author
No description provided by the author
MaxRuneCount validates the rune length of a string by using the unicode/utf8 package.
MinRuneCount validates the rune length of a string by using the unicode/utf8 package.
No description provided by the author
ToCamel converts a string to CamelCase.
ToDelimited converts a string to delimited.snake.case (in this case `delimiter = '.'`).
ToKebab converts a string to kebab-case.
ToLowerCamel converts a string to lowerCamelCase.
ToScreamingDelimited converts a string to SCREAMING.DELIMITED.SNAKE.CASE (in this case `delimiter = '.'; screaming = true`) or delimited.snake.case (in this case `delimiter = '.'; screaming = false`).
ToScreamingKebab converts a string to SCREAMING-KEBAB-CASE.
ToScreamingSnake converts a string to SCREAMING_SNAKE_CASE.
No description provided by the author
No description provided by the author
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Variables
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
No description provided by the author
No description provided by the author
idl type ,toml结构须和 struct 层级一致 struct 映射字段须导出 表名须一致,大小写敏感,字段大小写不敏感不支持特殊字符 建议表名和字段保持一致.
No description provided by the author
No description provided by the author