2

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?

OneOfOne
  • 95,033
  • 20
  • 184
  • 185
Kokizzu
  • 24,974
  • 37
  • 137
  • 233

2 Answers2

5

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

ykulah
  • 88
  • 2
  • 7
1

Ctrl+Shift+J works for me on LiteIDE 26. F2 doesnt work!

Mujibur
  • 937
  • 7
  • 12