mappings

package
v1.6.4 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2016 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MIMEInfo

type MIMEInfo struct {
	XMLName   xml.Name   `xml:"mime-info"`
	MIMETypes []MIMEType `xml:"mime-type"`
}

type MIMEType

type MIMEType struct {
	MIME  string `xml:"type,attr"`
	Globs []struct {
		Pattern string `xml:"pattern,attr"`
		Weight  string `xml:"weight,attr"`
	} `xml:"glob"`
	XMLPattern []struct {
		Local string `xml:"localName,attr"`
		NS    string `xml:"namespaceURI,attr"`
	} `xml:"root-XML"`
	Magic   []Magic `xml:"magic"`
	Aliases []struct {
		Alias string `xml:"type,attr"`
	} `xml:"alias"`
	SuperiorClasses []struct {
		SubClassOf string `xml:"type,attr"`
	} `xml:"sub-class-of"`
	Comment  []string `xml:"_comment"`
	Comments []string `xml:"comment"`
	Acronym  []string `xml:"acronym"`
	Superior bool     `xml:"-"`
}

func (MIMEType) String

func (m MIMEType) String() string

type Magic

type Magic struct {
	Matches  []Match `xml:"match"`
	Priority string  `xml:"priority,attr"`
}

type Match

type Match struct {
	Typ     string  `xml:"type,attr"`
	Offset  string  `xml:"offset,attr"`
	Value   string  `xml:"value,attr"`
	Mask    string  `xml:"mask,attr"`
	Matches []Match `xml:"match"`
}

Jump to

Keyboard shortcuts

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