vim-go v1.12 Release Notes

Release Date: 2017-03-29 // about 7 years ago
  • ๐Ÿ”‹ FEATURES:

    if err != nil {
      log.Fatal(err)
    }
    
    • ๐Ÿ†• New :GoBuildTags command to change build tags for tools such as guru, gorename, etc ... There is also a new setting called g:go_build_tags [GH-1232]

    ๐Ÿ‘Œ IMPROVEMENTS:

    • vim-go works now even if GOPATH is not set (starting with Go 1.8) [GH-1248]
    • ๐Ÿ“š Lowercase <Leader> in mappings examples for consistent documentation across the README [GH-1192]
    • All of files should be written in utf-8 if the file will be passed to external command. [GH-1184]
    • :GoAddTags is now able to add options to existing tags with the syntax :GoAddTags key,option, i.e: :GoAddTags json,omitempty [GH-985]
    • Document 'noshowmode' requirement for echo_go_info [GH-1197]
    • ๐Ÿ‘Œ Improve godoc view for vertical splits [GH-1195]
    • ๐Ÿ”€ Set GOPATH for both possible go guru execution paths (sync and async) [GH-1193]
    • ๐Ÿ‘Œ Improve docs for :GoDef usage [GH-1242]
    • Highlight trimming syntax for Go templates [GH-1235]

    ๐Ÿ› BUG FIXES:

    • Honor g:go_echo_command_info when dispatching builds in neovim [GH-1176]
    • ๐Ÿ›  Fix :GoBuild error in neovim due to invalid jobcontrol handler function signatures (s:on_stdout, s:on_stderr)[GH-1176]
    • โšก๏ธ Update statusline before and after go#jobcontrol#Spawn command is executed [GH-1176]
    • Correctly report the value of the 'g:go_guru_tags' variable [GH-1177]
    • Ensure no trailing : exist in GOPATH detection if initial GOPATH is not set [GH-1194]
    • ๐Ÿ›  Fix :GoAddTags to allow modifying existing comments [GH-984]
    • ๐Ÿ›  Fix :GoAddTags to work with nested structs [GH-990]
    • ๐Ÿ›  Fix :GoAddTags adding tags twice for existing tags [GH-1064]
    • ๐Ÿ›  Fix :GoAddTags not working for fields of types interface{} [GH-1091]
    • ๐Ÿ›  Fix :GoAddTags not working for fields with one line comments [GH-1181]
    • ๐Ÿ›  Fix :GoAddTags not working if any field comment would contain {} [GH-1189]
    • Respect go_fmt_options when running goimports [GH-1211]
    • Set the filename in the location-list when there is an error with :GoFmt [GH-1199]
    • ๐Ÿ›  Fix :GoInstall to accept additional arguments if async mode was enabled [GH-1246]

    BACKWARDS INCOMPATIBILITIES:

    • ๐Ÿšš The command :GoGuruTags is removed in favour of the new command :GoBuildTags. This command will be used now not just for guru, also for all new commands such as gorename [GH-1232]
    • The setting g:go_guru_tags is removed in favour of the new setting g:go_build_tags [GH-1232]