github.com/go-enry/go-enry@v1.7.3/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 "gopkg.in/src-d/enry.v1"
    15  
    16  //go:generate make code-generate