licensematch

package
v0.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 12, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Best

func Best(licenses map[string]float32) (license string, confidence float32)

Best returns the first best match from a license list.

Note: thanks to the unordered nature of maps "first" means first in alphabetical order. This is to ensure consistent results for this function.

func Bests

func Bests(licenses map[string]float32) (matches map[string]float32, maxConfidence float32)

Bests returns the all best matches and their confidence level from a license list.

func Merge

func Merge(licenses map[string]float32, newlicenses map[string]float32) map[string]float32

Merge merges two lists of license matches.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL