Skip to content

Commit

Permalink
fillstruct: add support for build tags
Browse files Browse the repository at this point in the history
  • Loading branch information
bhcleek committed Feb 13, 2021
1 parent cb4c622 commit d24b695
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions autoload/go/fillstruct.vim
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ function! go#fillstruct#FillStruct() abort
" Needs: https://github.com/davidrjenni/reftools/pull/14
"\ '-tags', go#config#BuildTags()]

let l:buildtags = go#config#BuildTags()
if l:buildtags isnot ''
let l:cmd += ['-tags', l:buildtags]
endif

" Read from stdin if modified.
if &modified
call add(l:cmd, '-modified')
Expand Down

0 comments on commit d24b695

Please sign in to comment.