Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Initial implementation of encoding integers to strings #121
Conversation
|
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). Once you've signed, please reply here (e.g.
|
|
Signed CLA per the comment. |
|
CLAs look good, thanks! |
|
Looks good so far, please add tests for error cases, e.g. not an int on parse. @mylanconnolly |
|
Added a test case to include strings that cannot be parsed to numbers. Please let me know if you'd like to see more test cases. I don't believe my changes affected any more logic than that. |
|
Please add support for doubles/floats too. |
This is in reference to #120.
I added some code to enable marshalling and unmarshalling the following types to/from
strings:intint64*int*int64To accomplish this, you would use a struct tag of
string, like the built-in json encoding package. For example:I have added tests to verify my new functionality is working as expected and all existing tests still pass, so I don't think I messed with the default behavior by doing this.
Thanks!