# intellij-plugin-dubbo-go-generator **Repository Path**: changeden/intellij-plugin-dubbo-go-generator ## Basic Information - **Project Name**: intellij-plugin-dubbo-go-generator - **Description**: Intellij插件,用于支持Dubbo-Go。 - **Primary Language**: Java - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 12 - **Forks**: 0 - **Created**: 2022-02-10 - **Last Updated**: 2025-06-08 ## Categories & Tags **Categories**: idea-plugins **Tags**: plugin, IDEA, Go语言, Dubbo, Dubbo-Go ## README This is a Dubbo-Go Project tool.
This Plugin is only for IntelliJ IDEA And GoLand. Which is base on Dubbo-Go and more flexible and convenient. Welcome to issue and PR. ## Feature | Feature | IDEA | GoLand | |:------------------:|:----:|:------:| | Hessian2 Generator | ✅️ | ✅️ | | New Project/Module | ✅️ | ✅️ | ### Project/Module Template | Project/Module Template | Progress | |:-----------------------:|:--------:| | Sample | ✅️ | | Empty Project | ✅️ | #### Empty Project Template Middleware | Middleware | Module | Support | |:------------:|:-------------------------------------:|:-------:| | Web Service | [Gin](github.com/gin-gonic/gin) | ✅️ | | Memory Cache | [Redis](github.com/go-redis/redis/v8) | ✅️ | | Database | [Gorm](gorm.io/gorm) | ✅️ | ## Install * Using IDE built-in plugin system on Windows: * File > Settings > Plugins > Browse repositories... > Search for "Dubbo Go" > Install Plugin * Using IDE built-in plugin system on MacOS: * Preferences > Settings > Plugins > Browse repositories... > Search for "Dubbo Go" > Install Plugin * Manually: * Download the latest release and install it manually using Preferences > Plugins > Install plugin from disk... * From official jetbrains store from download Restart IDE. ## Usage ### Create Project #### 1. New Project ![](https://plugins.jetbrains.com/files/18581/screenshot_efb3cb95-ef25-44f5-8205-c19679ddff9d) #### 2. Choose Dubbo Go Project ![](https://plugins.jetbrains.com/files/18581/screenshot_ef70924c-667f-4b50-8001-12c9ba93d5c2) #### 3. Custom Config * Select dubbo registry * Add some middlewares ### Generate Hessian Register Statement Valid only in `*.go` files. #### 1. Open `Generate` Menu and Choose `Dubbo-Go Hessian Generator` ![](https://plugins.jetbrains.com/files/18581/screenshot_3475e3fc-cb25-479f-9f8c-fe32398bbc5c) #### 2. Choose Go Struct You can see `Only Generate {StructName}` option when you are right click in the type declare line. ![](https://plugins.jetbrains.com/files/18581/screenshot_27bf4f67-6aba-4a0a-9a04-65618dd4adee) #### 3. Generate complete ![](https://plugins.jetbrains.com/files/18581/screenshot_3b625000-c2ba-42c3-9019-61383aa4435f) ## ### [code](https://gitee.com/changeden/intellij-plugin-dubbo-go-generator) ### [issues](https://gitee.com/changeden/intellij-plugin-dubbo-go-generator/issues)