Documentation
¶
Overview ¶
Package coding provides encoding and decoding utilities for various data formats. It includes common constants and helper functions used across different encoding implementations such as Base64, Hex, and other data transformation operations.
Index ¶
- Variables
- type Decoder
- func (d Decoder) ByBase100() Decoder
- func (d Decoder) ByBase32() Decoder
- func (d Decoder) ByBase32Hex() Decoder
- func (d Decoder) ByBase45() Decoder
- func (d Decoder) ByBase58() Decoder
- func (d Decoder) ByBase62() Decoder
- func (d Decoder) ByBase64() Decoder
- func (d Decoder) ByBase64Url() Decoder
- func (d Decoder) ByBase85() Decoder
- func (d Decoder) ByBase91() Decoder
- func (d Decoder) ByHex() Decoder
- func (d Decoder) ByMorse() Decoder
- func (d Decoder) ByUnicode() Decoder
- func (d Decoder) FromBytes(b []byte) Decoder
- func (d Decoder) FromFile(f fs.File) Decoder
- func (d Decoder) FromString(s string) Decoder
- func (d Decoder) ToBytes() []byte
- func (d Decoder) ToString() string
- type Encoder
- func (e Encoder) ByBase100() Encoder
- func (e Encoder) ByBase32() Encoder
- func (e Encoder) ByBase32Hex() Encoder
- func (e Encoder) ByBase45() Encoder
- func (e Encoder) ByBase58() Encoder
- func (e Encoder) ByBase62() Encoder
- func (e Encoder) ByBase64() Encoder
- func (e Encoder) ByBase64Url() Encoder
- func (e Encoder) ByBase85() Encoder
- func (e Encoder) ByBase91() Encoder
- func (e Encoder) ByHex() Encoder
- func (e Encoder) ByMorse() Encoder
- func (e Encoder) ByUnicode() Encoder
- func (e Encoder) FromBytes(b []byte) Encoder
- func (e Encoder) FromFile(f fs.File) Encoder
- func (e Encoder) FromString(s string) Encoder
- func (e Encoder) ToBytes() []byte
- func (e Encoder) ToString() string
Constants ¶
This section is empty.
Variables ¶
View Source
var BufferSize = 64 * 1024
BufferSize buffer size for streaming (64KB is a good balance)
Functions ¶
This section is empty.
Types ¶
type Decoder ¶
type Decoder struct {
Error error
// contains filtered or unexported fields
}
Decoder defines a Decoder struct.
func (Decoder) ByBase32Hex ¶
ByBase32Hex decodes by base32hex.
func (Decoder) ByBase64Url ¶
ByBase64Url decodes by base64 url-safe.
func (Decoder) FromString ¶
FromString decodes from string.
type Encoder ¶
type Encoder struct {
Error error
// contains filtered or unexported fields
}
Encoder defines a Encoder struct.
func (Encoder) ByBase32Hex ¶
ByBase32Hex Encoders by base32hex.
func (Encoder) ByBase64Url ¶
ByBase64Url Encoders by base64 url-safe.
func (Encoder) FromString ¶
FromString encodes from string.
Source Files
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
Package base100 implements base100 encoding and decoding with streaming support.
|
Package base100 implements base100 encoding and decoding with streaming support. |
|
Package base32 implements base32 encoding and decoding with streaming support.
|
Package base32 implements base32 encoding and decoding with streaming support. |
|
Package base45 implements base45 encoding and decoding with streaming support.
|
Package base45 implements base45 encoding and decoding with streaming support. |
|
Package base58 implements base58 encoding and decoding with streaming support.
|
Package base58 implements base58 encoding and decoding with streaming support. |
|
Package base62 implements base62 encoding and decoding with streaming support.
|
Package base62 implements base62 encoding and decoding with streaming support. |
|
Package base64 implements base64 encoding and decoding with streaming support.
|
Package base64 implements base64 encoding and decoding with streaming support. |
|
Package base85 implements base85 encoding and decoding with streaming support.
|
Package base85 implements base85 encoding and decoding with streaming support. |
|
Package base91 implements base91 encoding and decoding with streaming support.
|
Package base91 implements base91 encoding and decoding with streaming support. |
|
Package hex implements hex encoding and decoding with streaming support.
|
Package hex implements hex encoding and decoding with streaming support. |
|
Package morse implements morse encoding and decoding with streaming support.
|
Package morse implements morse encoding and decoding with streaming support. |
|
Package unicode implements unicode encoding and decoding with streaming support.
|
Package unicode implements unicode encoding and decoding with streaming support. |
Click to show internal directories.
Click to hide internal directories.