Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

math/big: Cannot use gob to encode big.Int #1496

Closed
gopherbot opened this issue Feb 11, 2011 · 4 comments
Closed

math/big: Cannot use gob to encode big.Int #1496

gopherbot opened this issue Feb 11, 2011 · 4 comments

Comments

@gopherbot
Copy link

by reuben.bond:

What steps will reproduce the problem?
1. Attempt to Encode a big.Int using gob

What is the expected output?
Serialised big.Int

What do you see instead?
Nothing - this is 'expected' due to unexported fields, but not ideal from a programmers
perspective

Which compiler are you using (5g, 6g, 8g, gccgo)?
6g

Which operating system are you using?
Ubuntu Linux 10.10 Maverick

Which revision are you using?  (hg identify)
7a3c74451e47 tip

Please provide any additional information below.
Why this is important: big.Int is used in cryptography structures.

A similar issue arises when using JSON, but JSON gives an out by supplying the
programmer with the option to provide their own marshal/unmarshal. A similar option for
Gob would be great.
@robpike
Copy link
Contributor

robpike commented Feb 11, 2011

Comment 1:

Owner changed to g...@golang.org.

Status changed to Accepted.

@robpike
Copy link
Contributor

robpike commented Feb 11, 2011

Comment 2:

Owner changed to r...@golang.org.

@robpike
Copy link
Contributor

robpike commented Mar 6, 2011

Comment 3:

Changing owner to gri.  The gob package now supports custom codecs.

Owner changed to g...@golang.org.

@griesemer
Copy link
Contributor

Comment 4:

This issue was closed by revision 758d055.

Status changed to Fixed.

@mikioh mikioh changed the title Cannot use gob to encode big.Int math/big: Cannot use gob to encode big.Int Feb 26, 2015
@golang golang locked and limited conversation to collaborators Jun 24, 2016
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants