2019-02-05 22:54:14 +01:00
|
|
|
/*
|
|
|
|
Package enry implements multiple strategies for programming language identification.
|
|
|
|
|
|
|
|
Identification is made based on file name and file content using a seriece
|
|
|
|
of strategies to narrow down possible option.
|
|
|
|
Each strategy is available as a separate API call, as well as a main enty point
|
|
|
|
|
|
|
|
GetLanguage(filename string, content []byte) (language string)
|
|
|
|
|
|
|
|
It is a port of the https://github.com/github/linguist from Ruby.
|
|
|
|
Upstream Linguist YAML files are used to generate datastructures for data
|
|
|
|
package.
|
|
|
|
*/
|
2020-03-19 17:31:29 +01:00
|
|
|
package enry // import "github.com/go-enry/go-enry/v2"
|
2018-04-28 13:12:25 +02:00
|
|
|
|
|
|
|
//go:generate make code-generate
|