Add LogID.Base64URLString

This commit is contained in:
Andrew Ayer 2025-05-02 08:15:00 -04:00
parent 8c26a075c0
commit 97a0e7b2a2
1 changed files with 4 additions and 0 deletions

View File

@ -58,3 +58,7 @@ func (id LogID) MarshalText() ([]byte, error) {
func (id LogID) Base64String() string {
return base64.StdEncoding.EncodeToString(id[:])
}
func (id LogID) Base64URLString() string {
return base64.RawURLEncoding.EncodeToString(id[:])
}