Answer the question
In order to leave comments, you need to log in
How to escape special characters in golang?
I have a string
{"function":"TrainingQuestionInfo","values":{"Question":"text with special characters / \ etc."}}
I need to escape them.
How to do it?
Answer the question
In order to leave comments, you need to log in
https://golang.org/ref/spec#String_literals In 'single quotes' characters are interpreted in 'double quotes' the string is not interpreted.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question