mimereader

package
v4.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2023 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reader

type Reader struct {
	// contains filtered or unexported fields
}

Reader store first 512 bytes of readed data to determine its mime type.

func New

func New(r io.Reader) *Reader

New creates new mime reader

func (*Reader) DetectContentType

func (m *Reader) DetectContentType() string

DetectContentType detects content type for reader

func (*Reader) Read

func (m *Reader) Read(b []byte) (n int, err error)

Read reads data from reader

Jump to

Keyboard shortcuts

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