# gengo **Repository Path**: mikepudding_admin/gengo ## Basic Information - **Project Name**: gengo - **Description**: No description available - **Primary Language**: Go - **License**: MIT - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2021-03-16 - **Last Updated**: 2021-07-07 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## gengo > gengo It is an automatic create golang code to generate corresponding addition, deletion, modification, and inspection logic and interfaces by defining a structure > > ** Thank you!** ## [中文文档](ZH_README.md) ## install ```console go get -u github.com/olongfen/gengo/cmd/gengo ``` ## gengo cli ```console gengo --help NAME: gengo - A new cli application USAGE: gengo [global options] command [command options] [arguments...] COMMANDS: help, h Shows a list of commands or help for one command GLOBAL OPTIONS: --output value, -o value The name of schema output to generate output --input value, -i value The name of the input go file path --mod value, -m value The name of project go module --web value, -w value The name of project web frame (default: "gin") --orm value, -r value The name of project orm frame (default: "gorm") --transformError, -t The name of transform db err (default: true) --help, -h show help (default: false) ``` ## Supported Web Frameworks - [gin](github.com/gin-gonic/gin) ## Supported Orm Frameworks - [gorm](gorm.io/gorm) ## Usage ```conlose - mkdir demo - cd demo - go mod init demo - echo ' package main import("gorm.io/gorm") type User struct { gorm.Model Name string Age int } ' >> gen.go - gengo -i ./gen.go -o . -m demo ``` ## Todo list - add orm frame - xorm - add web frame - echo - iris ## Example - [demo](https://github.com/olongfen/demo) ## License - MIT License