Comments (3)
I don't think receivers are treated as the "first argument" by the go language...
They are in the context of method expressions. For example, the type of (*bytes.Buffer).Write
is func(*bytes.Buffer, []byte) (int, error)
. See: https://play.golang.org/p/HVzthYTo6bg
from gocode.
I don't think receivers are treated as the "first argument" by the go language... (Even if they are probably treated like that in the generated assembly).
Anyhow, knowing the functions receiver is needed in order to fix this issue in vscode-go: microsoft/vscode-go#2107.
from gocode.
cc @stamblerre
from gocode.
Related Issues (20)
- Intellisense not working for imported packages when using dep HOT 3
- can't find package in gopath HOT 12
- Panic when autocompleting files under GOPATH HOT 2
- company-go: unwanted completion menu pops up right after left curly brace HOT 3
- No auto-complete with type-assertions HOT 4
- gocode: autocomplete broken in VS Code HOT 3
- Gabage completions after `..` or `...` HOT 2
- missing dependency HOT 1
- Use claat offline
- I can't install
- gocode: not restarting HOT 2
- Contributing
- panic: runtime error: slice bounds out of range [:-1] HOT 2
- Unable to recompile gocode after upgrading golang HOT 1
- Code completion always shows "PANIC" HOT 1
- add build on save to emacs plugin HOT 2
- Antivirus software terminates and detects go-code as infected with Win32/Xpaj.gen virus HOT 1
- Autocomplete and dep's [ignored] tag HOT 2
- Performance problems on code completion suggestions HOT 13
- Automatic prompting function for package paths HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gocode.