Transform JSON to Go structs
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mvh 4a4057bfa3 Add readme 12 months ago
.gitignore Transform JSON to Go structs 12 months ago
LICENSE Initial commit 12 months ago
README.md Add readme 12 months ago
go.mod Transform JSON to Go structs 12 months ago
main.go Transform JSON to Go structs 12 months ago

README.md

structify

Transform JSON to Go structs

Emacs Config

(defun go-json-structify (beg end)
  "Transform JSON in the selected region to Go Structs."
  (interactive "*r")
  (if (region-active-p)
      (shell-command-on-region beg end "structify" (current-buffer) t)
    (message "No active region")))

(local-set-key (kbd "C-x C-j") 'go-json-structify) ; Structify json in region