mime

package
v0.0.0-...-fab57c2 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package mime provides a mockable wrapper for mime.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Impl

type Impl struct{}

func (*Impl) AddExtensionType

func (*Impl) AddExtensionType(ext string, typ string) error

func (*Impl) ExtensionsByType

func (*Impl) ExtensionsByType(typ string) ([]string, error)

func (*Impl) FormatMediaType

func (*Impl) FormatMediaType(t string, param map[string]string) string

func (*Impl) ParseMediaType

func (*Impl) ParseMediaType(v string) (mediatype string, params map[string]string, err error)

func (*Impl) TypeByExtension

func (*Impl) TypeByExtension(ext string) string

type Interface

type Interface interface {
	AddExtensionType(ext string, typ string) error
	ExtensionsByType(typ string) ([]string, error)
	FormatMediaType(t string, param map[string]string) string
	ParseMediaType(v string) (mediatype string, params map[string]string, err error)
	TypeByExtension(ext string) string
}

Directories

Path Synopsis
Package multipart provides a mockable wrapper for mime/multipart.
Package multipart provides a mockable wrapper for mime/multipart.
Package quotedprintable provides a mockable wrapper for mime/quotedprintable.
Package quotedprintable provides a mockable wrapper for mime/quotedprintable.

Jump to

Keyboard shortcuts

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