Gopher

MediaType

MediaType is Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

MainType  

MainType is a {string }.

SubType  

SubType is a {string }.

Delimiter  

Delimiter is a {string }.

FirstSuffix  

FirstSuffix is a {SuffixInfo }. FirstSuffix holds the first suffix defined for this Type.

IsText  

() → bool

IsText returns whether this Type is a text format. Note that this may currently return false negatives. TODO(bep) improve

Suffixes  

() → []string

Suffixes returns all valid file suffixes for this type.

Type  

() → string

Type returns a string representing the main- and sub-type of a media type, e.g. “text/css”. A suffix identifier will be appended after a “+” if set, e.g. “image/svg+xml”. Hugo will register a set of default media types. These can be overridden by the user in the configuration, by defining a media type with the same Type.