1 Star 0 Fork 0

vizee/mybg

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
main.go 461 Bytes
一键复制 编辑 原始数据 按行查看 历史
vizee 提交于 2025-04-04 18:44 +08:00 . feat: dao command
package main
import (
"fmt"
"os"
"github.com/spf13/cobra"
)
const appName = "mybg"
func fatalf(format string, args ...any) {
fmt.Fprintf(os.Stderr, format, args...)
os.Exit(1)
}
func main() {
appCmds := &cobra.Command{
Use: appName,
Short: "mysql boilerplate generator",
}
appCmds.AddCommand(configCommand())
appCmds.AddCommand(modelCommand())
appCmds.AddCommand(daoCommand())
err := appCmds.Execute()
if err != nil {
os.Exit(1)
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/viz/mybg.git
git@gitee.com:viz/mybg.git
viz
mybg
mybg
v0.1.9

搜索帮助