Versions in this module Expand all Collapse all v0 v0.2.3 Feb 27, 2015 v0.2.2 Feb 27, 2015 Changes in this version + var ErrNotDirectory = errors.New("Couln't call NextFile(), this isn't a directory") + var ErrNotReader = errors.New("This file is a directory, can't use Reader functions") + type File interface + FileName func() string + IsDirectory func() bool + NextFile func() (File, error) + func NewFileFromPart(part *multipart.Part) (File, error) + func NewSerialFile(path string, file *os.File) (File, error) + type MultipartFile struct + Mediatype string + Part *multipart.Part + Reader *multipart.Reader + func (f *MultipartFile) Close() error + func (f *MultipartFile) FileName() string + func (f *MultipartFile) IsDirectory() bool + func (f *MultipartFile) NextFile() (File, error) + func (f *MultipartFile) Read(p []byte) (int, error) + type PeekFile interface + Length func() int + Peek func(n int) File + type ReaderFile struct + func NewReaderFile(filename string, reader io.ReadCloser, stat os.FileInfo) *ReaderFile + func (f *ReaderFile) Close() error + func (f *ReaderFile) FileName() string + func (f *ReaderFile) IsDirectory() bool + func (f *ReaderFile) NextFile() (File, error) + func (f *ReaderFile) Read(p []byte) (int, error) + func (f *ReaderFile) Size() (int64, error) + func (f *ReaderFile) Stat() os.FileInfo + type SizeFile interface + Size func() (int64, error) + type SliceFile struct + func NewSliceFile(filename string, files []File) *SliceFile + func (f *SliceFile) Close() error + func (f *SliceFile) FileName() string + func (f *SliceFile) IsDirectory() bool + func (f *SliceFile) Length() int + func (f *SliceFile) NextFile() (File, error) + func (f *SliceFile) Peek(n int) File + func (f *SliceFile) Read(p []byte) (int, error) + func (f *SliceFile) Size() (int64, error) + type StatFile interface + Stat func() os.FileInfo