If I understand what you're describing, your point is on the first line of a function (not necessarily at the end). You press V to go into (line) visual mode, and then $%. And that's not working?
When I do that, I do wind up with the entire function selected as I'd expect. FWIW, I'm using evil mode as configured by Spacemacs, and I tested it out in a random Go file I had open. It looks like Spacemacs does add a bunch of extra packages in their evil layer*, but I checked and % is bound to evil-jump-item from the evil package.
If I understand what you're describing, your point is on the first line of a function (not necessarily at the end). You press
V
to go into (line) visual mode, and then$%
. And that's not working?When I do that, I do wind up with the entire function selected as I'd expect. FWIW, I'm using evil mode as configured by Spacemacs, and I tested it out in a random Go file I had open. It looks like Spacemacs does add a bunch of extra packages in their evil layer*, but I checked and
%
is bound toevil-jump-item
from the evil package.* Not to be confused with their evil lair.