score

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	OS                []string
	Arch              []string
	Extensions        []string
	Names             []string
	Versions          []string
	Terms             []string
	WeightedTerms     map[string]int
	InvalidOS         []string
	InvalidArch       []string
	InvalidExtensions []string
}

func (*Options) GetAllStrings

func (o *Options) GetAllStrings() []string

type Sorted

type Sorted struct {
	Key   string
	Value int
}

func Score

func Score(names []string, opts *Options) []Sorted

func SortMapByValue

func SortMapByValue(m map[string]int) []Sorted

Jump to

Keyboard shortcuts

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