mimeclass

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package mimeclass buckets Content-Type values into the short classes pano shows in list rows and uses in filters and views.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsTextual

func IsTextual(class string) bool

IsTextual reports whether a class can be shown inline as text.

func MediaType

func MediaType(ct string) string

MediaType returns the bare media type of a Content-Type.

func Of

func Of(ct string) string

Of buckets a Content-Type into: json, sse, html, js, css, img, font, form, xml, text, media, bin, or "" when unknown.

Types

This section is empty.

Jump to

Keyboard shortcuts

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