func main() {
c := &http.Cookie{
Name: "cookie",
Value: "\"hello\"",
}
fmt.Println(c)
}
1. Why too much work being done while printing
<https://github.com/golang/go/blob/8869086d8f0a31033ccdc103106c768dc17216b1/src/net/http/cookie.go#L171>,
shouldn't this be done only once?
2. Why not provide http.NewCookie() to check for validation and print
normally?
Thank you.
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/golang-nuts/9b296a19-60ae-47cb-9fe0-0dddd1a1fefan%40googlegroups.com.