contenttype

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OnMismatchCorrect OnMismatch = "correct"
	OnMismatchReject  OnMismatch = "reject"
	OnUnknownTrust    OnUnknown  = "trust"
	OnUnknownReject   OnUnknown  = "reject"
)

Variables

This section is empty.

Functions

func Detect

func Detect(data []byte) string

func New

func New(opts Options) files.Middleware

Types

type OnMismatch

type OnMismatch string

type OnUnknown

type OnUnknown string

type Options

type Options struct {
	OnMismatch OnMismatch
	OnUnknown  OnUnknown
}

Jump to

Keyboard shortcuts

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