Add readme
parent
749ad3e848
commit
4a4057bfa3
@ -1,3 +1,15 @@
|
||||
# structify
|
||||
|
||||
Transform JSON to Go structs
|
||||
Transform JSON to Go structs
|
||||
|
||||
## Emacs Config
|
||||
```elisp
|
||||
(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
|
||||
```
|
||||
|
Loading…
Reference in New Issue