createdtime 20211113
updatedtime 20211113
author venki.chen
说明
GoLand的多数配置方法其实和PHPStorm是一样,所以一些配置方法可以借鉴我的另一篇文章PHPStorm——配置记录(持续更新中……)。此篇文件主要记录一些与PHPStorm不一样的配置方法。
1. GoLand配置文件头标准
目标
package redis
/**
@description
@copyright Copyright 2021 高灯科技
@version 1.0.0
@link https://www.goldentec.com
@author venki.chen <[email protected]>
@datetime 2021/11/13 10:17
*/
2. GoLand方法、接口、结构体等注释标准化配置
目标
//
// ProtoReflect
// @Description:
// @receiver x *PersonMessage
// @return protoreflect.Message
// @maxim from focus to execute
// @author venki.chen
// @createdtime 2021-11-13 10:54:13
// @updatedtime 2021-11-13 10:54:13
//
第一步:下载goanno插件
第二步:配置相应注释
变量一定要小写
第三步:生成注释
ctrl+alt+/