dougaicha5258 2014-06-12 09:42
浏览 307
已采纳

在LiteIDE中查看Golang软件包的源代码

What's the easiest way to view source code of golang packages in LiteIDE?

for example, when there are code like this:

import "github.com/revel/revel"

func init() {
    // Filters is the default set of global filters.
    revel.Filters = []revel.Filter{
        revel.PanicFilter,             // Recover from panics and display an error page instead.
        revel.RouterFilter,            // Use the routing table to select the right Action
        revel.FilterConfiguringFilter, // A hook for adding or removing per-Action filters.
        revel.ParamsFilter,            // Parse parameters into Controller.Params.
        revel.SessionFilter,           // Restore and write the session cookie.
        revel.FlashFilter,             // Restore and write the flash cookie.
        revel.ValidationFilter,        // Restore kept validation errors and save new ones from cookie.
        revel.I18nFilter,              // Resolve the requested language
        HeaderFilter,                  // Add some security based headers
        revel.InterceptorFilter,       // Run interceptors around the action.
        revel.CompressFilter,          // Compress the result.
        revel.ActionInvoker,           // Invoke the action.
    }
}

If I want to know what's the revel.PanicFilter really do, I would visit the http://github.com/revel/revel and seek the source code..

When using C++ (QtCreator), i would only need to ctrl+click then it would visit the declaration/implementation.

My Jump to declaration menu doesn't work in LiteIDE, maybe because the packages are compressed in .a archive?

file pkg/linux_amd64/github.com/revel/revel.a 
pkg/linux_amd64/github.com/revel/revel.a: current ar archive

Is there an easier way to go to declaration to view the source just like in QtCreator?

  • 写回答

2条回答 默认 最新

  • doujiao1949 2015-01-23 14:40
    关注

    F2 key jumps to the declaration of library function in Lite IDE v24.3

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥30 深度学习,前后端连接
  • ¥15 孟德尔随机化结果不一致
  • ¥15 apm2.8飞控罗盘bad health,加速度计校准失败
  • ¥15 求解O-S方程的特征值问题给出边界层布拉休斯平行流的中性曲线
  • ¥15 谁有desed数据集呀
  • ¥20 手写数字识别运行c仿真时,程序报错错误代码sim211-100
  • ¥15 关于#hadoop#的问题
  • ¥15 (标签-Python|关键词-socket)
  • ¥15 keil里为什么main.c定义的函数在it.c调用不了
  • ¥50 切换TabTip键盘的输入法