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

Use base32 instead of base64 for identifiers #21

Merged
merged 3 commits into from Mar 8, 2024
Merged

Use base32 instead of base64 for identifiers #21

merged 3 commits into from Mar 8, 2024

Conversation

swenson
Copy link

@swenson swenson commented Mar 5, 2024

Base64 in Go 1.22 requires that the list of characters in the encoding be unique. This is not possible
if we are using it to generate Go identifiers.

So, we switch to base32.

This is not a breaking change as this only affects the generated code, and not the wire format.

Christopher Swenson added 3 commits March 5, 2024 08:53
Base64 in Go 1.22 requires that the list of characters
in the encoding be unique. This is not possible
if we are using it to generate Go identifiers.

So, we switch to base32.

This is not a breaking change as this only affects
the generated code, and not the wire format.
msgpack-rpc protocol defined at:
https://github.com/msgpack-rpc/msgpack-rpc/blob/master/spec.md

- For messagepack, configure how ambiguities in handling raw bytes are resolved
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All this noise is from gofmt, unfortunately.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hiding whitespace helps a bit :)

Copy link

@benashz benashz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@swenson
Copy link
Author

swenson commented Mar 8, 2024

Thanks!

@swenson swenson merged commit 1750000 into main Mar 8, 2024
4 checks passed
@swenson swenson deleted the go1.22 branch March 8, 2024 18:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants