langdetect

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2026 License: Zlib Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindProgrammingLanguagesString

func FindProgrammingLanguagesString(baseDir string) (string, error)

Types

type DetectedLanguage

type DetectedLanguage struct {
	Language string
	Score    int
	Evidence []string
}

func ReportedLanguages

func ReportedLanguages(detected []DetectedLanguage) []DetectedLanguage

type Detector

type Detector struct {
	MaxFiles int
	MaxBytes int64
}

func (Detector) FindProgrammingLanguages

func (d Detector) FindProgrammingLanguages(baseDir string) ([]DetectedLanguage, error)

Jump to

Keyboard shortcuts

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