mime

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Registry

type Registry string
const (
	Application Registry = "application"
	Audio       Registry = "audio"
	Font        Registry = "font"
	Example     Registry = "example"
	Image       Registry = "image"
	Message     Registry = "message"
	Model       Registry = "model"
	Multipart   Registry = "multipart"
	Text        Registry = "text"
	Video       Registry = "video"
)

func RegistryOf

func RegistryOf(s string) (*Registry, error)

type Type

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

Look more https://www.iana.org/assignments/media-types/media-types.xhtml

func Parse

func Parse(s string) (*Type, error)

func (*Type) Name

func (t *Type) Name() string

func (*Type) Parameters

func (t *Type) Parameters() map[string]string

func (*Type) Registry

func (t *Type) Registry() Registry

Jump to

Keyboard shortcuts

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