Documentation

Overview

    Package splitwriter provides a WriteCloser that writes to a file and splits it into smaller files when it's closed.

    Index

    Constants

    This section is empty.

    Variables

    This section is empty.

    Functions

    func New

    func New(fname string, maxsize, bufsize int64) (io.WriteCloser, error)

      New returns an io.WriteCloser that writes to fname; when it's closed, fname will be split in multiple files each of which having at most maxsize bytes. Files are split on offsets where a \n is found, but if no \n is found the file isn't split.

      Types

      This section is empty.

      Source Files