Documentation
¶
Index ¶
- Variables
- func DecodeBase64(s string) string
- func DecodeBase64URL(s string) string
- func EncodeBase64(s string) string
- func EncodeBase64Chunks(s string, maxChunkSize uint) []string
- func EncodeBase64URL(s string) string
- func EscapeXML(s string) string
- func Inflate(compressed []byte) ([]byte, bool)
- func PackBigInt16(n int) string
- func PackBigInt32(n int) string
- func PackBigInt64(n int) string
- func PackLittleInt32(n int) string
- func PackLittleInt64(n int) string
- func Title(s string) string
- func URLEncodeString(inputString string) string
Constants ¶
This section is empty.
Variables ¶
var EscapeHTML = html.EscapeString
Functions ¶
func DecodeBase64 ¶
DecodeBase64 decodes base64 with standard encoding.
func DecodeBase64URL ¶ added in v1.29.1
DecodeBase64URL decodes URL safe base64 variant.
func EncodeBase64 ¶
EncodeBase64 uses standard format non-URL safe base64 encoding to encode a string.
func EncodeBase64Chunks ¶ added in v1.31.0
EncodeBase64Chunks creates a slice of maxiumum size base64 strings, where the maxChunkSize is the calculated base64 chunk size and not of the original data. This is useful when you know you need to send some data in a chunked manner and the target contains a data size restriction, but you do not want to guess at the size of encoded data.
If a chunk size maximum is requested that is larger than the encoded string will be the only chunk.
func EncodeBase64URL ¶ added in v1.29.1
EncodeBase64URL encodes to URL safe base64 with padding.
func PackBigInt16 ¶ added in v1.1.0
PackBigInt16 packs a big-endian 16-bit integer as a string.
func PackBigInt32 ¶ added in v1.1.0
PackBigInt32 packs a big-endian 32-bit integer as a string.
func PackBigInt64 ¶ added in v1.34.0
PackBigInt64 packs a big-endian 64-bit integer as a string.
func PackLittleInt32 ¶ added in v1.0.14
PackLittleInt32 packs a little-endian 32-bit integer as a string.
func PackLittleInt64 ¶ added in v1.0.14
PackLittleInt64 packs a little-endian 64-bit integer as a string.
func URLEncodeString ¶ added in v1.8.2
URL encode every character in the provided string.
Types ¶
This section is empty.