doc: reformat & clarify

This commit is contained in:
Alex Bezzubov
2023-02-16 17:46:23 +01:00
parent 319e630aaf
commit 6d99af7bbc
2 changed files with 11 additions and 9 deletions

16
enry.go
View File

@ -1,15 +1,15 @@
/*
Package enry implements multiple strategies for programming language identification.
Package enry identifies programming languages.
Identification is made based on file name and file content using a service
of strategies to narrow down possible option.
Each strategy is available as a separate API call, as well as a main enty point
Identification is based on file name and content using a series
of strategies to narrow down possible options.
Each strategy is available as a separate API call, as well as though the main enty point:
GetLanguage(filename string, content []byte) (language string)
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.
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.
*/
package enry // import "github.com/go-enry/go-enry/v2"