Function: go-tag-refresh

go-tag-refresh is an interactive and natively compiled function defined in go-tag.el.

Signature

(go-tag-refresh TAGS)

Documentation

Refresh field TAGS for struct fields.

Key Bindings

This command is not in any keymaps.

Source Code

;; Defined in /nix/store/4jjjcvfszn24ybwdg82skyc9bkmmzbb9-emacs-packages-deps/share/emacs/site-lisp/elpa/go-tag-20230111.651/go-tag.el
;;;###autoload
(defun go-tag-refresh (tags)
  "Refresh field TAGS for struct fields."
  (interactive "sTags: ")
  (let ((stags (go-tag--parse-tag tags))
        (options (go-tag--parse-option tags)))
    (when (string-equal stags "") (setq stags "json"))
    (if (use-region-p)
        (progn
          (go-tag--region-remove (region-beginning) (region-end) stags "")
          (go-tag--region (region-beginning) (region-end) stags options))
      (progn
        (go-tag--point-remove (position-bytes (point))  stags "")
        (go-tag--point (position-bytes (point))  stags options)))))