在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.
}
}
Run Code Online (Sandbox Code Playgroud)
如果我想知道什么是revel.PanicFilter真的,我会访问http://github.com/revel/revel并寻找源代码..
使用C++(QtCreator)时,我只需要按住ctrl +然后它就会访问声明/实现.
我的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
Run Code Online (Sandbox Code Playgroud)
有没有比QtCreator更简单的方式来声明查看源代码?