在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中一样?
发布于 2015-01-23 14:40:51
F2键跳转到Lite IDE v24.3中的库函数声明
发布于 2015-01-29 08:26:32
Ctrl+Shift+J在LiteIDE 26上为我工作。F2不工作!
https://stackoverflow.com/questions/24181198
复制相似问题