News for hackers. Stuff that matters.
Re:Go Creeping In by notafrog on Tuesday June 18, 2019 @08:31AM (#20212281)
My biggest issue with navigating Go codebases is that sometimes it's cumbersome to find where a specific type/function is defined, when there are multiple files under the same directory.
Re:Go Creeping In by NateDad on Tuesday June 18, 2019 @09:36AM (#20212794)
A simple text search will find it every time. Since Go code should always be formatted, it's pretty trivial to search for `type HTTPServer` or `func NewServer(` ... even over fairly large codebases this will give few enough hits that you can just search everything most of the time.
Re:Go Creeping In by apta on Tuesday June 18, 2019 @11:40AM (#20214298)
Not to mention trying to figure out which types implement a given interface. You'll get completely unrelated types you don't care about a lot of the time.
Re:Go Creeping In by Lio on Wednesday June 19, 2019 @05:28AM (#20221965)
Would this not be solvable with something like ctags or godef?

(I'm a newbie with Go so I've probably missed something in the problem you're describing).

Re:Go Creeping In by cmonfeat on Tuesday June 18, 2019 @08:53AM (#20212416)
I've had this issue as well and found that it makes using an IDE almost mandatory for large code bases.