go代码自动生成注释

1.注释规范

https://www.cnblogs.com/zhichaoma/p/12509999.html

2.goland 插件之goanno

离线下载地址:

https://plugins.jetbrains.com/plugin/14988-goanno

https://github.com/loveinsky100/goanno

修改模板:

Tools - Goanno Setting

//   ${function_name}
//      @Description: ${todo}
//      @receiver ${receiver_name_type}
//      @param ${param_name_type}
//      @return ${ret_name_type}

3.使用code templates

https://blog.csdn.net/qq_24909089/article/details/107518317

4.注释自动生成

go get -u github.com/Gnouc/gocmt
gocmt -i $FilePath$

相关链接

https://blog.csdn.net/u010243725/article/details/110726943

https://zhuanlan.zhihu.com/p/147074843

https://github.com/cuonglm/gocmt