v0.0.1 : 25 January 2025
package base64translator is a very simple translator for taking either base64.StdEncoded data to base64.RawStdEncoded to allow both to be read by base64.RawStdEncoding decoding.
This is best used in cases where you aren't sure whether you will be receiving base64.StdEncoded or base64.RawStdEncoded data.
Usage example:
b64 := NewBase64ToRaw(bytes.NewReader(encodedBytes))
b, err := io.ReadAll(base64.NewDecoder(base64.RawStdEncoding, b64))
This project is licensed under the MIT Licence.