On Mon, Sep 6, 2021 at 7:40 PM 'nadashin' via golang-nuts < golang-nuts@googlegroups.com> wrote:
> Why is the function in Go compiler that interprets escape sequences not > available in Go's standard library? > 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) } -- Kurtis Rader Caretaker of the exceptional canines Junior and Hank -- 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/CABx2%3DD-s6PKsyVw_CqrcD51n05peO6FeWECjc1u%3DJ4U0fpH3DA%40mail.gmail.com.