This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun toggle-backslash-dwim (&optional start end) | |
"Toggle slashes-backslashes for the active region. | |
If there's no active region START and END, it operates on the | |
current line." | |
(interactive "r") | |
(save-excursion | |
(unless (use-region-p) | |
(cl-destructuring-bind (a . b) | |
(bounds-of-thing-at-point 'line) | |
(setf start a |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
) | |
func main() { | |
b := []byte(`{"key":"value"}`) |