There are various fmt.Println statements in my golang project which I run through Idea IntelliJ version 2016.3. Is there any way I navigate to the code from console's printed statements? I want know what code is printing the line [rinted on console.
- 点赞 评论 复制链接分享
I know it's late but maybe help others
you can use
function, file, line, ok := runtime.Caller(1)to get where is the runtime, for example, you can use this project for your error点赞 评论 复制链接分享