Goanno 是 goland 的一个插件,这个插件为 golang 提供了自动生成注释的功能。
How to install
- goland 插件市场(搜索 Goanno)
- 下载 release jar(goland install from disk) goanno.jar
How to use
- .control + commond + / (for windows: control + alt + /)
- Right click -> Generate -> Goanno
-
Edit comment template
- Select "Tools - Goanno Setting"
- Edit template
Template
| Args | Desc |
|---|---|
| ${todo} | Blank Placeholder |
| ${receiver} | function receiver name or type |
| ${params} | function params name or type |
| ${return_types} | function output name or type |
| ${function_name} | function name |
| ${date} | yyyy-MM-dd HH |