GoLand——配置记录(持续更新中……)


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+/

猜你喜欢

转载自blog.csdn.net/qq_38721452/article/details/121300921
今日推荐