forked from ugorji/go
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use base32 instead of base64 for identifiers (#21)
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.
- Loading branch information
Christopher Swenson
authored
Mar 8, 2024
1 parent
c1a7c12
commit 1750000
Showing
4 changed files
with
89 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
//go:build codecgen.exec | ||
|
||
package codec | ||
|
||
import "testing" | ||
|
||
// TestDontPanic checks that the code compiles with this tag. | ||
func TestDontPanic(t *testing.T) {} |