Skip to content

Commit

Permalink
Merge pull request #3156 from bhcleek/fillstruct/tags
Browse files Browse the repository at this point in the history
fillstruct: add support for build tags
  • Loading branch information
bhcleek authored Feb 14, 2021
2 parents cb4c622 + d24b695 commit df8b80d
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 df8b80d

Please sign in to comment.