Registry / utility / go-enry-go-license-detector-v4

go-enry-go-license-detector-v4

JSON →
library4.3.1gogounverified

Detects the license type of a project by analyzing its files.

go get github.com/go-enry/go-license-detector/v4
INSTALL
IMPORT
SIG · GO-ENRY-GO-LICENSE
G
go-enry-go-license-detector-v4
utilitygov4.3.1
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.

license
github.com/go-enry/go-license-detector/v4

Detects licenses in the current directory.

package main import ( "fmt" "github.com/go-enry/go-license-detector/v4/licensedb" ) func main() { results, err := licensedb.Detect(".") if err != nil { fmt.Println(err) return } for _, match := range results { fmt.Printf("License: %s (confidence: %f)\n", match.License, match.Confidence) } }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
4.3.1latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

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