We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I was editing a sample go file and i defined the following struct
struct
type FooStruct struct { name string }
when my cursor is on FooStruct and i type :GoImpl io.WriteCloser, then after the generated code, the file looks like below:
FooStruct
:GoImpl io.WriteCloser
type FooStruct struct { func (f *FooStruct) Write(p []byte) (n int, err error) { panic("not implemented") } func (f *FooStruct) Close() error { panic("not implemented") } name string }
Please provide a recipe to replicate your problem with a minimal vimrc with all plugins other than vim-go disabled.
vimrc
I expected that the generated code for implemented functions will go after the struct definition ends.
vim -version VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Sep 27 2017 06:40:24) Garbage after option argument: "-version" More info with: "vim -h"
:version
go version
The text was updated successfully, but these errors were encountered:
Curious; I made some fixes for this a while ago in #1386, and it seems to work for me with your example, I end up with the methods after the struct.
Could you please:
git log -n1
impl
:GoUpdateBinaries
Thanks!
Sorry, something went wrong.
Attaching the output of the git log -n1
commit 3806c4e59da235e01e0abbe2eefa59053c27b12b (HEAD -> master, origin/master, origin/HEAD) Author: Fatih Arslan <[email protected]> Date: Wed Jun 14 13:31:34 2017 +0300 Update Changelog.md
It looks like you're using a version from June (from before my patch), and not the latest version. Your problem should be fixed if you update vim-go.
It works as expected after i pulled latest changes. Thanks!
No branches or pull requests
What did you do? (required. The issue will be closed when not provided.)
I was editing a sample go file and i defined the following
struct
when my cursor is on
FooStruct
and i type:GoImpl io.WriteCloser
, then after the generated code, the file looks like below:Please provide a recipe to replicate your problem with a minimal
vimrc
with all plugins other than vim-go disabled.What did you expect to happen?
I expected that the generated code for implemented functions will go after the struct definition ends.
What happened instead?
when my cursor is on
FooStruct
and i type:GoImpl io.WriteCloser
, then after the generated code, the file looks like below:Configuration
vim -version
VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Sep 27 2017 06:40:24)
Garbage after option argument: "-version"
More info with: "vim -h"
:version
):latest from github.com
go version
):go version go1.8.3 darwin/amd64
MacOS
vimrc
you used to reproduce:The text was updated successfully, but these errors were encountered: