Documentation
¶
Index ¶
- func DecodeIfEncoded(ctx context.Context, s string) (decoded string)
- func DecodeRecursively(ctx context.Context, s string) (decoded string)
- func DecodeString(ctx context.Context, s string) (decoded string, err error)
- func Encode(b []byte) string
- func EncodeString(s string) string
- func IsEncoded(s string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeIfEncoded ¶
DecodeIfEncoded will attempt to decode any string if they are base64 encoded. If not, the string will be returned as is. If the string is base64 encoded but the decoding fails, the original string will be returned.
func DecodeRecursively ¶
DecodeRecursively will attempt to decode any string until they are no longer base64 encoded.
func DecodeString ¶
DecodeString decodes a base64 encoded string. An error is raised if decoding fails.
func EncodeString ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.