splitwriter

package
v0.1.0-alpha Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2021 License: MIT Imports: 9 Imported by: 0

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.

Jump to

Keyboard shortcuts

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