'How to see Go func len() Implementation in VS Code?
My goal is to see the logic behind func len() in Golang. I use VS Code for IDE.
The problem is when I tried to do Go to Implementation
, it returns No implementation found for 'len'
.
What I've did:
- Install Go extension in VS Code, and install Go binary.
- I can do
Go to Definition
, the IDE will openbuiltin.go
. However,builtin.go
only containsfunc len(v Type) int
without a body.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|