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条)

报告相同问题?

悬赏问题

  • ¥60 版本过低apk如何修改可以兼容新的安卓系统
  • ¥25 由IPR导致的DRIVER_POWER_STATE_FAILURE蓝屏
  • ¥50 有数据,怎么建立模型求影响全要素生产率的因素
  • ¥50 有数据,怎么用matlab求全要素生产率
  • ¥15 TI的insta-spin例程
  • ¥15 完成下列问题完成下列问题
  • ¥15 C#算法问题, 不知道怎么处理这个数据的转换
  • ¥15 YoloV5 第三方库的版本对照问题
  • ¥15 请完成下列相关问题!
  • ¥15 drone 推送镜像时候 purge: true 推送完毕后没有删除对应的镜像,手动拷贝到服务器执行结果正确在样才能让指令自动执行成功删除对应镜像,如何解决?