Is there any ready-built function that can tell me whether 
`strconv.Quote()` would produce a different string than its input, without 
actually running it?  Or is there a clearly documented set of rules one 
could use to test each rune in a string?

I am trying to avoid allocations, and MOST of the inputs will be safe (but 
not all).  Calling strconv.Quote() has a measurable impact, so I'd avoid it 
if I could...

Does such an animal exist?

Tim

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/1bb3f806-5930-4866-8249-0bbc0ee383b8n%40googlegroups.com.

Reply via email to