multipart

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2020 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Overview

Package multipart implements an http.File that acts as one logical file backed by several physical files (the 'parts').

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFile

func NewFile(name string, parts []*os.File) (http.File, error)

NewFile creates the multipart file out of the provided parts. The sizes of the parts are captured at the outset and not updated for the lifetime of the multipart file (any subsequent modifications in the parts will cause Read and Seek to work incorrectly).

Types

This section is empty.

Jump to

Keyboard shortcuts

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