sqs / goreturns

A gofmt/goimports-like tool for Go programmers that fills in Go return statements with zero values to match the func return types
Other
530 stars 55 forks source link

Ignore no buildable Go source files error #54

Closed krhubert closed 6 years ago

krhubert commented 6 years ago

I looked at this https://github.com/fatih/vim-go/issues/208 issue and come up with this fix.

After this and #52 PR goreturns might be integrated with vim-go I guess.

I've also added two flags to make it work. I know it mgith be confusing , waiting for feedbac.

Below is possible vim implementation of goreturns:

  let [l:out, l:err] = go#util#Exec(['goreturns', '-w', '-i=false', '-exclude', expand('%:t'),  '-pkgdir', expand('%:p:h'), l:tmpname])