net: net.IPNet should implement encoding.TextMarshaler and TextUnmarshaler #12803
Labels
Comments
|
What should a
Then, independently of the above, should
|
Too late, I'm afraid. That would change the current encodings. http://play.golang.org/p/DY7Juqs9vT
|
@rsc Sorry, I don't get why parsing "127.0.0.1/24" into a net.IPNET could not be implemented anyway? |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Fails with "panic: json: cannot unmarshal string into Go value of type net.IPNet".
go version go1.5.1 linux/amd64
The text was updated successfully, but these errors were encountered: