uu

package module
v0.0.0-...-179826c Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2024 License: MIT Imports: 6 Imported by: 1

README

About

GoDoc

Encoder/decoder for UUencoded text

License

Under MIT

Documentation

Index

Constants

View Source
const (
	UUAlphabet = " !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_"
)

...

Variables

This section is empty.

Functions

func DecodeBlock

func DecodeBlock(rows []string) ([]byte, error)

DecodeBlock decodes a uuencoded text block

func DecodeLine

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

DecodeLine decodes a single line of uuencoded text

func Encode

func Encode(data []byte, filename, mode string) ([]byte, error)

Encode encodes data into uuencoded format, with header and footer

func EncodeBlock

func EncodeBlock(data []byte) ([]byte, error)

EncodeBlock encodes data in raw uunecoded format

Types

type Decoded

type Decoded struct {
	Data     []byte
	Filename string
	Mode     string
}

Decoded holds result from uuencoded decode

func Decode

func Decode(data []byte) (*Decoded, error)

Decode decodes UUencoded text

Jump to

Keyboard shortcuts

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