https://github.com/things-go/dyn
https://github.com/things-go/dyn
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/things-go/dyn
- Owner: things-go
- License: mit
- Created: 2022-01-20T06:19:11.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-05-22T11:58:25.000Z (about 2 years ago)
- Last Synced: 2024-05-22T12:56:23.570Z (about 2 years ago)
- Language: Go
- Size: 862 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# dyn
dyn project toolkit for gin
[](https://pkg.go.dev/github.com/things-go/dyn?tab=doc)
[](https://codecov.io/gh/things-go/dyn)
[](https://github.com/things-go/dyn/actions/workflows/ci.yml)
[](https://goreportcard.com/report/github.com/things-go/dyn)
[](https://raw.githubusercontent.com/things-go/dyn/main/LICENSE)
[](https://github.com/things-go/dyn/tags)
## Usage
`dyn`是一个`gin`,`protobuf`工程以及代码工具生成器.
- `proto-gen-dyn-gin` 从 `proto` 的生成`gin`的代码.
***注意***: 当使用`proto-gen-go-gin`要禁用`gin`自带的`binding`,使用`gin.DisableBindValidation()` 接口
- `proto-gen-dyn-resty` 从 `proto` 的生成`resty`的代码.
- `proto-gen-dyn-enum` 从 `proto` 的生成`enum`的代码.
- `errno-gen` 从枚举生成统一错误
- `dyngen` 简化工程模板生成
### Installation
Use go get.
```bash
go get github.com/things-go/dyn
```
Then import the package into your own code.
```bash
import "github.com/things-go/dyn"
```
### Example
[embedmd]:# (_examples/main.go go)
```go
```
## References
## License
This project is under MIT License. See the [LICENSE](LICENSE) file for the full license text.