Versions in this module Expand all Collapse all v1 v1.0.0 Feb 2, 2019 Changes in this version + func AddLoader(format string, loader Loader) + type BasicMediaTypeRegistry struct + ExactToType map[string]*InternalMediaType + ExtToType map[string]*InternalMediaType + NameToType map[string]*InternalMediaType + PatternsToType []*InternalMediaType + func NewBasicMediaTypeRegistry() *BasicMediaTypeRegistry + func (mtr *BasicMediaTypeRegistry) Add(mt MediaType) + func (mtr *BasicMediaTypeRegistry) ExtensionsByType(typ string) ([]string, error) + func (mtr *BasicMediaTypeRegistry) TypeByExtension(ext string) string + func (mtr *BasicMediaTypeRegistry) TypeByFilename(name string) string + type InternalMediaType struct + Extensions []string + type Loader func(io.Reader) (MediaTypeRegistry, error) + type MediaType struct + Globs []string + Name string + type MediaTypeRegistry interface + ExtensionsByType func(string) ([]string, error) + TypeByExtension func(string) string + TypeByFilename func(string) string + func Load(path, format string) (MediaTypeRegistry, error)