一个 GoLand 插件,可自动提供数据库字段补全、标签,并生成结构体用于编写 ORM 代码。支持: Gorm、Xorm、Beego、GoFrame
一个 GoLand 插件,可自动提供数据库字段补全、标签,并生成结构体用于编写 ORM 代码。支持: Gorm、Xorm、Beego、GoFrame
A GoLand plugin that automatically provides database field autocompletion, tags, and generates Structs for writing ORM code. Supports: Gorm、Xorm、Beego、GoFrame, etc. ⭐️ Star to support our work!
Inspired by Laravel Idea & PhpStorm metadata. When using ORM packages in Golang, I noticed that some ORM function parameters are strings and the IDE does not support code completion. It becomes inconvenient to write code when dealing with numerous fields. Previously, when I was writing PHP, I used similar plugins and found them extremely useful. Hence, this plugin was developed.
https://www.jetbrains.com/help/go/auto-completing-code.html#code-completion-for-functions
If the plugin is not compatible with your syntax, you can use the @Model or @Table helper.
The plugin will scan the Structs in your project. It is recommended to set the scanning scope.
Selected SQL -> Editor Popup Menu -> Go ORM Helper Tool -> SQL Convert Struct
Compatibility Range:
- GoLand — 2022.2+
- IntelliJ IDEA Ultimate — 2022.2+
暂无开放 Issues,或尚未同步最近议题。