A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/syohex/emacs-go-add-tags below:

emacsorphanage/go-add-tags: Add field tags for struct fields

Add field tags for struct fields. This package is inspired by GoAddTags of vim-go.

go-add-tags is available on MELPA and MELPA stable

You can install go-add-tags with the following command.

M-x package-install [RET] go-add-tags [RET]

Insert tag at current line. You can input multiple tags at once by comma, like json,yaml. If region is enabled, then tags are inserted in lines in region. And current-prefix-key is specified, then you can choose field style function.

go-add-tags-style(Default: 'snake-case)

How to convert field in tag from field name.

(custom-set-variables
 '(go-add-tags-style 'lower-camel-case))

(with-eval-after-load 'go-mode
  (define-key go-mode-map (kbd "C-c t") #'go-add-tags))

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4