2

在 LiteIDE 中查看 golang 包源代码的最简单方法是什么?

例如,当有这样的代码时:

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.
    }
}

如果我想知道 revel.PanicFilter 到底是做什么的,我会访问http://github.com/revel/revel并寻找源代码。

当使用 C++ (QtCreator) 时,我只需要 ctrl+click 然后它就会访问声明/实现。

我的Jump to declaration菜单在 LiteIDE 中不起作用,可能是因为软件包压缩在.a存档中?

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

有没有更简单的方法可以像在 QtCreator 中一样去声明查看源代码?

4

2 回答 2

5

F2键跳转到Lite IDE v24.3中库函数的声明

于 2015-01-23T14:40:51.353 回答
1

Ctrl+Shift+J 在 LiteIDE 26 上适用于我。F2 不起作用!

于 2015-01-29T08:26:32.680 回答