apache / apache/dubbo-go

Intellij Plugin Support

Open
#1,750 0 comments 0 reactions 0 assignees View on GitHub
good first issue
Dominant language
Go
Stars
5k
Forks
1k
Avg merge
2d 8h
Merged PRs (30d)
31

Description

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)

Contributor guide

Open the contributing guide

Research direction

Start with the linked Gitee code and issue tracker, then review the listed IntelliJ IDEA and GoLand features and installation flow. The issue does not identify a missing capability, target file, or test, so a concrete definition of done would need to be established before implementation.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
developer-experience, tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.