Registry / utility / go-enry-go-enry-v2

go-enry-go-enry-v2

JSON →
library2.9.6gogounverified

Package enry identifies programming languages.

go get github.com/go-enry/go-enry/v2
INSTALL
IMPORT
SIG · GO-ENRY-GO-ENRY-V2
G
go-enry-go-enry-v2
utilitygov2.9.6
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

enry
github.com/go-enry/go-enry/v2

Detect the programming language of a file.

package main import ( "github.com/go-enry/go-enry/v2" ) func main() { lang := enry.GetLanguage("main.go", []byte("package main")) _ = lang }
Debug
Known issues
breakingv2 has breaking changes from v1; API differs.
fix
Use import path github.com/go-enry/go-enry/v2 and update function calls.
affects: <2.0.0
Upgrade
Version history
2.9.6latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
go-enry-go-enry-v2 — go get go-enry-go-enry-v2 · libregistry