github.com/google/licensecheck/old.Match.Percent (field)
7 uses
github.com/google/licensecheck/old (current package)
license.go#L156: Percent float64 // The fraction of words between Start and End that are matched.
license.go#L222: if matches[i].Percent < threshold {
license.go#L231: miWords := mi.Percent * float64(mi.End-mi.Start)
license.go#L239: if miWords > mj.Percent*float64(mj.End-mj.Start) {
license.go#L375: Percent: 100.0, // 100% of Start:End is a license URL.
license.go#L473: match.Percent = 100 * float64(s.matched) / float64(len(l.doc.words))
golang.org/x/pkgsite/internal/testing/sample
sample.go#L403: Match: []oldlicensecheck.Match{{Name: LicenseType, Type: oldlicensecheck.MIT, Percent: 100}},
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |