gitlab.com/thomasboni/go-enry/v2@v2.8.3-0.20220418031202-30b0d7a3de98/enry.go (about) 1 /* 2 Package enry implements multiple strategies for programming language identification. 3 4 Identification is made based on file name and file content using a seriece 5 of strategies to narrow down possible option. 6 Each strategy is available as a separate API call, as well as a main enty point 7 8 GetLanguage(filename string, content []byte) (language string) 9 10 It is a port of the https://github.com/github/linguist from Ruby. 11 Upstream Linguist YAML files are used to generate datastructures for data 12 package. 13 */ 14 package enry // import "gitlab.com/thomasboni/go-enry/v2" 15 16 //go:generate make code-generate