encoding

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package encoding provides Base64, Base32, and Base58 encoding and decoding functions, plus a WrapString helper for line wrapping encoded output at a specified column width.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Base32Decode

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

Base32Decode decodes base32 data

func Base32Encode

func Base32Encode(data []byte) string

Base32Encode encodes data to base32

func Base58Decode

func Base58Decode(s string) []byte

Base58Decode decodes base58 data (Bitcoin alphabet)

func Base58Encode

func Base58Encode(data []byte) string

Base58Encode encodes data to base58 (Bitcoin alphabet)

func Base64Decode

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

Base64Decode decodes base64 data

func Base64Encode

func Base64Encode(data []byte) string

Base64Encode encodes data to base64

func WrapString

func WrapString(s string, width int) string

WrapString wraps a string at the specified width, inserting newlines.

Types

This section is empty.

Jump to

Keyboard shortcuts

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