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)
Click to show internal directories.
Click to hide internal directories.