https://github.com/haormj/code-generator
基于go实现的代码/文本生成器,这样可以省下人写很多内容
https://github.com/haormj/code-generator
Last synced: 3 months ago
JSON representation
基于go实现的代码/文本生成器,这样可以省下人写很多内容
- Host: GitHub
- URL: https://github.com/haormj/code-generator
- Owner: haormj
- License: mit
- Created: 2023-01-16T10:13:30.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-01-19T10:37:56.000Z (over 2 years ago)
- Last Synced: 2025-01-13T20:14:58.190Z (5 months ago)
- Language: Go
- Size: 8.79 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## code-generator
### 概述
基于golang text/template 包实现模板生成器,简化人为操作
### 安装
```
go install github.com/haormj/code-generator@latest
```### 使用
- cd /path/to/dir
- code-generator init
- write some template, ref
- https://masterminds.github.io/sprig
- https://pkg.go.dev/text/template
- code-generator generate