utils

package
v1.1.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 9, 2024 License: Apache-2.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

View Source
const TokenChars = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ+/-_="

TokenChars characters allowed in base64 encoded string.

Variables

This section is empty.

Functions

func ContainsInvalidChars

func ContainsInvalidChars(charset, s string) error

ContainsInvalidChars returns error if the provided string contains characters outside of the allowed character set.

func ContainsTokenCharset

func ContainsTokenCharset(s string) bool

ContainsTokenCharset checks if a string contains non-base64 encoding characters.

func ContainsValidCharset

func ContainsValidCharset(charset, s string) error

ContainsValidCharset returns error if the provided string contains characters outside of the provided character set.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL