linguist

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2017 License: MIT, MIT Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Languages = map[string]*Language{}/* 391 elements not displayed */

)

Functions

This section is empty.

Types

type Language

type Language struct {
	Name         string
	Type         string
	Group        string
	Color        string
	Aliases      []string
	Extensions   []string
	Filenames    []string
	Interpreters []string
	TmScope      string
	AceMode      string
	Wrap         bool
	Searchable   bool
}

func DetectLanguage

func DetectLanguage(filename string, blob []byte) *Language

func DetectLanguageByExtension

func DetectLanguageByExtension(filename string) []*Language

func DetectLanguageByFilename

func DetectLanguageByFilename(filename string) []*Language

Jump to

Keyboard shortcuts

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