On Tue, Sep 7, 2021 at 2:29 PM 'nadashin' via golang-nuts
<
golan...@googlegroups.com> wrote:
> > It does. See
https://pkg.go.dev/strconv#Unquote. Try this hastily thrown together example:
> >
> > package main
> >
> > import (
> > "fmt"
> > "strconv"
> > )
> >
> > func main() {
> > e := strconv.Quote("a\033\r\nb")
> > v, err := strconv.Unquote(e)
> > fmt.Printf("%v .%v. .%v.\n", err, e, v)
> > }
>
> This is silly. I want to be able to pass any valid string and get a result.
That's exactly what the code demonstrates. Please provide an example
of some code you need to make work and where do you get stuck. Or some
other clue enabling others to help you. Thanks.