base

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunBase32

func RunBase32(w io.Writer, args []string, opts BaseOptions) error

RunBase32 encodes or decodes base32 data

func RunBase58

func RunBase58(w io.Writer, args []string, opts BaseOptions) error

RunBase58 encodes or decodes base58 data (Bitcoin alphabet)

func RunBase64

func RunBase64(w io.Writer, args []string, opts BaseOptions) error

RunBase64 encodes or decodes base64 data

Types

type BaseOptions

type BaseOptions struct {
	Decode        bool // -d: decode data
	Wrap          int  // -w: wrap encoded lines after N characters (0 = no wrap)
	IgnoreGarbage bool // -i: ignore non-alphabet characters when decoding
}

BaseOptions configures the base encode/decode command behavior

Jump to

Keyboard shortcuts

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