首页 > 其他分享 >goland使用技巧

goland使用技巧

时间:2022-12-08 09:44:16浏览次数:61  
标签:技巧 weixin blog goland details https 使用 net

1、如何显示文件是否发生了修改?

 

 

 

2、添加自定义模板代码

如想要生成这段代码的模板:

func (this *UserClass) Build() {
	this.Handle("GET", "/User", this.GetUser())
}

通配符定义:

 

 

 

 

使用:

 

 

 

 

3、设置变量的值

https://www.jetbrains.com/help/go/2021.1/examining-suspended-program.html#variables

 

 

4、goland中生成方法的注释

默认情况下,goland并不会自动生成方法的注释,包含参数名等。

可以借助于“Goanno ”插件来完成:

https://github.com/loveinsky100/goanno

https://blog.csdn.net/weixin_43064185/article/details/123332158

5、idea上面显示Back 和 forward标识

https://blog.csdn.net/weixin_43167662/article/details/112260771

 

6、切换commit dialog到dack或者到放到侧边栏上

标签:技巧,weixin,blog,goland,details,https,使用,net
From: https://www.cnblogs.com/cosmos-wong/p/16965240.html

相关文章