internal

package
v0.0.0-...-4cbcc9d Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ResultStore

type ResultStore[T any] struct {
	FilenameAliases  map[string]string
	FilenamesIndices map[string]int
	Filenames        []string
	Values           map[int]T
}

func NewResultStore

func NewResultStore[T any]() *ResultStore[T]

func (*ResultStore[T]) FilenameNearest

func (r *ResultStore[T]) FilenameNearest(filePath string) string

func (*ResultStore[T]) Get

func (r *ResultStore[T]) Get(filePath string) T

func (*ResultStore[T]) GetOr

func (r *ResultStore[T]) GetOr(filePath string, defVal T) T

func (*ResultStore[T]) Has

func (r *ResultStore[T]) Has(filePath string) bool

func (*ResultStore[T]) Set

func (r *ResultStore[T]) Set(filePath string, value T)

Jump to

Keyboard shortcuts

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