Documentation ¶
Overview ¶
Package format implements the age file format.
Index ¶
Constants ¶
View Source
const BytesPerLine = ColumnsPerLine / 4 * 3
View Source
const ColumnsPerLine = 64
Variables ¶
View Source
var EncodeToString = b64.EncodeToString
Functions ¶
func DecodeString ¶
func NewlineWriter ¶
NewlineWriter returns a Writer that writes to dst, inserting an LF character every ColumnsPerLine bytes. It does not insert a newline neither at the beginning nor at the end of the stream, but it ensures the last line is shorter than ColumnsPerLine, which means it might be empty.
Types ¶
type Header ¶
type ParseError ¶
type ParseError string
func (ParseError) Error ¶
func (e ParseError) Error() string
Click to show internal directories.
Click to hide internal directories.