Documentation
¶
Overview ¶
Package yenc implements dependency-free yEnc and uuencode decoders and encoders for Usenet binary posts. It uses only the Go standard library and builds with CGO_ENABLED=0.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrCRCMismatch = errors.New("yenc: CRC32 mismatch")
ErrCRCMismatch is returned by Decode when the trailer CRC does not match the decoded data.
Functions ¶
Types ¶
type Part ¶
type Part struct {
Name string // =ybegin name=
Size int64 // =ybegin size=
Line int // =ybegin line=
Part int // =ypart / =ybegin part= (0 for single-part)
Total int // =ybegin total= (0 if absent)
Begin int64 // =ypart begin= (1-based; 0 for single-part)
End int64 // =ypart end=
CRC32 uint32 // =yend pcrc32 (part) or crc32 (single); 0 if absent
Data []byte // decoded bytes
}
Part is one decoded yEnc part (single-part posts have Part==0).
Click to show internal directories.
Click to hide internal directories.