On Tue, Sep 7, 2021 at 2:29 PM 'nadashin' via golang-nuts
<golang-nuts@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.

-- 
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/CAA40n-U7dD_YeUugSzknMFBgeB7wo2jvdWr-b6-HtkGu_XZrxw%40mail.gmail.com.

Reply via email to