Hi, I was confused that why fmt "%#v" and "%#q" of string value have different result.
fmt.Printf("%#q\n", `%#q: "c:\x\y\z"`) fmt.Printf("%#v\n", `%#v: "c:\x\y\z"`) fmt.Printf("%#q\n", "%#q cannot sharp because has [``] ") fmt.Printf("%#v\n", "%#v cannot sharp because has [``] ") // `%#q: "c:\x\y\z"` // "%#v: \"c:\\x\\y\\z\"" // "%#q cannot sharp because has [``] " // "%#v cannot sharp because has [``] " The Go syntax style fmt "%#v" do not use raw string literals style. Which makes the string field prints not easy to read. eg filepath: "%#v: \"c:\\x\\y\\z\"" Ally -- 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. For more options, visit https://groups.google.com/d/optout.