encoding

package
v1.0.5028 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2025 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var StdEncoding = New()

StdEncoding

Functions

func Base32Decode added in v1.0.5027

func Base32Decode(s string) ([]byte, error)

Base32 Decode

func Base32Encode added in v1.0.5027

func Base32Encode(src []byte) string

Base32 Encode

func Base64Decode

func Base64Decode(s string) ([]byte, error)

Base64 Decode

func Base64Encode

func Base64Encode(src []byte) string

Base64 Encode

func BytesPadding

func BytesPadding(text []byte, size int) []byte

Bytes Padding

func HexDecode

func HexDecode(s string) ([]byte, error)

Hex Decode

func HexEncode

func HexEncode(src []byte) string

Hex Encode

func HexPadding

func HexPadding(text string, size int) string

Hex Padding

Types

type Encoding

type Encoding struct{}

*

  • Encoding *
  • @create 2022-4-17
  • @author deatil

func New added in v1.0.4031

func New() *Encoding

New Encoding

func (*Encoding) Base32Decode added in v1.0.5027

func (this *Encoding) Base32Decode(s string) ([]byte, error)

Base32 Decode

func (*Encoding) Base32Encode added in v1.0.5027

func (this *Encoding) Base32Encode(src []byte) string

Base32 Encode

func (*Encoding) Base64Decode

func (this *Encoding) Base64Decode(s string) ([]byte, error)

Base64 Decode

func (*Encoding) Base64Encode

func (this *Encoding) Base64Encode(src []byte) string

Base64 Encode

func (*Encoding) BytesPadding

func (this *Encoding) BytesPadding(text []byte, size int) []byte

Bytes Padding

func (*Encoding) HexDecode

func (this *Encoding) HexDecode(s string) ([]byte, error)

Hex Decode

func (*Encoding) HexEncode

func (this *Encoding) HexEncode(src []byte) string

Hex Encode

func (*Encoding) HexPadding

func (this *Encoding) HexPadding(text string, size int) string

Hex Padding

Jump to

Keyboard shortcuts

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