Documentation ¶
Overview ¶
Tokenizers for various formats, that satisfies the password.Tokenizer interface.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LineReader ¶
type LineReader struct {
// contains filtered or unexported fields
}
LineReader will return one line when Next() is called.
func NewBz2Line ¶
func NewBz2Line(r io.Reader) *LineReader
NewBz2Line reads one password per line until \0xa (newline) is encountered. The input is assumed to be bzip2 compressed. Input is streamed. If r does not also implement io.ByteReader, the decompressor may read more data than necessary from in.
func NewGzLine ¶
func NewGzLine(r io.Reader) (*LineReader, error)
NewGzLine reads one password per line until \0xa (newline) is encountered. The input is assumed to be gzip compressed. Input is streamed.
func NewLine ¶
func NewLine(r io.Reader) *LineReader
NewLine reads one password per line until \0xa (newline) is encountered. Input is streamed.
func (*LineReader) Next ¶
func (l *LineReader) Next() (string, error)
Next returns the data on the next line. Will return io.EOF when there is no more data.