Dolphin, a Golang code generation tool, based on the gin and xormplus, can quickly cohesion incognito function framework, and effectively reduce repeat code logic.
- Install dolphin
$ go get -u github.com/2637309949/dolphin/cmd/dolphin
$ dolphin
Code generation tool for golang
Usage:
dolphin [command]
Available Commands:
assert Generate Go code that statically implements input filesystem
build Build from the configuration file
clean Remove temp file, such as *.go.new
help Help about any command
more Add controller and table
new New a empty project
reverse Inversion of the data model
serve Serve api document
Flags:
-h, --help help for dolphin
Use "dolphin [command] --help" for more information about a command.
- New project
$ dolphin new hello && cd hello && dolphin build && go run main.go
- Generates the code base on XML configuration
- Generates doc base on XML configuration
- Generates SQL base on XML configuration
- Handles the serialization null problem
- Multi-tenant support
- Login / Logout, or single sign on
- Permission Authentication
- Quick excel reporting or parsing
- Support routing caching
- Data permission control
- Log trace record
- RPC remote service
- The k8S deployment file is generated by default
- Support database reverse XML generation
Copyright (c) 2018-2022 Double
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.