FAQ

On 2013/05/14 22:21:56, bradfitz wrote:
I would rather not see a proliferation of GobEncode and GobDecode
functions all
over the standard library.
Unfortunately, UserInfo objects have a private field, in order to store
if they have a password set (to differentiate no password from an empty
password), so there's no way to for encoding/<whatever> to handle them
directly. Maybe we should remove that private field rather than
explicitly implementing encoding/decoding?

It gives me Java Serializable flashbacks.
Can't these be registered with gob somehow instead?

https://codereview.appspot.com/8325045/diff/5001/src/pkg/net/url/url.go
File src/pkg/net/url/url.go (right):

https://codereview.appspot.com/8325045/diff/5001/src/pkg/net/url/url.go#newcode298
src/pkg/net/url/url.go:298: if _, err :=
buf.Write([]byte(u.username)); err !=
nil {
WriteString, not Write. here and elsewhere.
Noted, will update those.

Regards,
Alberto

https://codereview.appspot.com/8325045/

--

---
You received this message because you are subscribed to the Google Groups "golang-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 1 | next ›
Discussion Overview
groupgolang-dev @
categoriesgo
postedMay 15, '13 at 12:02p
activeMay 15, '13 at 12:02p
posts1
users1
websitegolang.org

1 user in discussion

Alberto Garcia Hierro: 1 post

People

Translate

site design / logo © 2022 Grokbase