Goanno 是 goland 的一个插件,这个插件为 golang 提供了自动生成注释的功能。
How to install
How to use
- .control + commond + / (for windows: control + alt + /)
- Right click -> Generate -> Goanno
- Edit comment 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 |