detector

package
v0.31.1 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2024 License: AGPL-3.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 Detector

type Detector struct {
	io.Reader
	// contains filtered or unexported fields
}

func NewDetector

func NewDetector(reader io.Reader, detectFunc func([]byte) string) *Detector

func (*Detector) Detect

func (d *Detector) Detect() (string, error)

func (*Detector) RestoredReader

func (d *Detector) RestoredReader() io.Reader

Jump to

Keyboard shortcuts

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