gofmt -r "'->\"" book.go
parsing pattern ' at 1:1: rune literal not terminated
Hi! I'd like to do just that. No tr(I'm using Linux). I understand that it must be a valid go expression. Nonetheless, why can't I just replace single quote with double quote without using tr or other tools? Please, improve gofmt or ar least enlighten me.
The first result of a google search with the last part of your question is here;http://stackoverflow.com/a/17009339/1505341
Good luck!
Hi! I'd like to do just that. No tr(I'm using Linux). I understand that it must be a valid go expression. Nonetheless, why can't I just replace single quote with double quote without using tr or other tools? Please, improve gofmt or ar least enlighten me.
-j
Hi! Again! `gofmt -w book.go` inserts spaces in my book.go, but it can't and it won't replace single quotes with double quotes. Why? Because it's just not normal.
Sorry. I thought Go and Go tools are evolving. I thought that maybe, one day, my posts will get to shape Go. And the Go tools.