Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

第 50 期 GoLand overview and practive #383

Closed
yangwenmai opened this issue May 18, 2019 · 6 comments
Closed

第 50 期 GoLand overview and practive #383

yangwenmai opened this issue May 18, 2019 · 6 comments
Labels
Go 夜读 Go 夜读:主题分享 已分享 ✅ Go 夜读的分享状态:分享已完成。

Comments

@yangwenmai
Copy link
Member

yangwenmai commented May 18, 2019

GoLand overview and practive

GoLand is a Golang developer IDE.

discuss

GoLand IDE Slack channel :https://reading-go.slack.com/messages/CJM4R08KB

Schedule

2019-06-27 21:00:00

Reference

  1. https://www.youtube.com/watch?v=DlF6EJurb88
  2. https://www.youtube.com/watch?v=7yaJfyF6KO4

Zoom

https://zoom.us/j/304093235

视频回看

  1. YouTube https://youtu.be/iCGsPN4qgdM
  2. Bilibili https://www.bilibili.com/video/av57075824/
@yangwenmai yangwenmai added 分享话题 Go 夜读 Go 夜读:主题分享 labels May 18, 2019
@shengyou
Copy link

我们将会在 6/27 为大家带来一场 GoLand 新功能介绍及使用技巧分享,由 JetBrains 技术布道师 Florin Pățan 主讲 (英语) 并由 圣佑 协助重点及问答来回翻译。

关于 GoLand 相关介绍可参考官方博客:

若有任何想要知道的功能及疑问,可先在 Issue 内提出。

@yangwenmai yangwenmai pinned this issue Jun 6, 2019
@markzhang0928
Copy link

markzhang0928 commented Jun 6, 2019

想知道 goland中 go Module 工具的使用:

特别是,在使用go.mod replace依赖包之后,goland如何跟踪、提示正确的代码?

以及断点,调试工具的使用。
以及其他奇淫技巧~~

@yangwenmai yangwenmai unpinned this issue Jun 17, 2019
@yangwenmai
Copy link
Member Author

yangwenmai commented Jun 18, 2019

问题1:

package main

import (
	"fmt"
)

func main() {
	defer_call()
}

func defer_call() {
	defer func() { fmt.Println("打印前") }()
	defer func() { fmt.Println("打印中") }()
	defer func() { fmt.Println("打印后") }()

	panic("触发异常")
}

使用 GoLand 运行,得到的 Output:

panic: 触发异常

goroutine 1 [running]:
main.defer_call()
打印后
打印中
打印前

也可能是:

打印后
打印中
panic: 触发异常
打印前

goroutine 1 [running]:
main.defer_call()

但是如果使用系统终端 go build,然后再执行,每次得到的输出都是:

打印后
打印中
打印前
panic: 触发异常

@yangwenmai
Copy link
Member Author

问题2:

使用 TiDB 结合 GoLand 进行 debug 的时候,SELECT 可以 debug,但是 create 不可以 debug。

@yangwenmai yangwenmai pinned this issue Jun 26, 2019
@yangwenmai yangwenmai changed the title 【Share】GoLand overview and practive 【Go 夜读】GoLand overview and practive Jun 26, 2019
@yangwenmai yangwenmai changed the title 【Go 夜读】GoLand overview and practive 【Go 夜读】#50 GoLand overview and practive Jun 26, 2019
@yangwenmai
Copy link
Member Author

新版本的 GoLand 2019.1.3

命令行输入:

$ goland . 

无法调起 GoLand 客户端,我记得之前的版本是可以的。

@yangwenmai
Copy link
Member Author

新版本的 GoLand 2019.1.3

命令行输入:

$ goland . 

无法调起 GoLand 客户端,我记得之前的版本是可以的。

已解决。(重新安装一下:Tools->Create Launcher Script)

@yangwenmai yangwenmai unpinned this issue Jul 4, 2019
@yangwenmai yangwenmai changed the title 【Go 夜读】#50 GoLand overview and practive 第 50 期 GoLand overview and practive Feb 2, 2020
@yangwenmai yangwenmai added the 已分享 ✅ Go 夜读的分享状态:分享已完成。 label Feb 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Go 夜读 Go 夜读:主题分享 已分享 ✅ Go 夜读的分享状态:分享已完成。
Projects
Development

No branches or pull requests

3 participants