files

package
v0.0.0-...-71eae79 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package files deals with file processing for gjere.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContentTypeReader

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

ContentTypeReader is a reader that can detect the content type of the provided input.

func NewContentTypeReader

func NewContentTypeReader(r io.Reader) *ContentTypeReader

NewContentTypeReader creates a new io.Reader with content type detection.

func (*ContentTypeReader) ContentType

func (c *ContentTypeReader) ContentType() (string, error)

ContentType returns the content type of the underlying reader.

func (*ContentTypeReader) Read

func (c *ContentTypeReader) Read(p []byte) (int, error)

Read from the contained reader. Not safe for concurrent use.

Jump to

Keyboard shortcuts

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