indexpath

package
v1.8.2 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package indexpath provides utilities for managing index directory paths with support for the new zoekt_data subdirectory structure.

Index

Constants

View Source
const (
	// ZoektDataDir is the name of the subdirectory for index files
	ZoektDataDir = "zoekt_data"
)

Variables

This section is empty.

Functions

func GetIndexPath

func GetIndexPath(baseDir string) (string, error)

GetIndexPath returns the appropriate index path based on the base directory. If a zoekt_data subdirectory exists and contains index files, use it. If the base directory has index files, use the base directory. Otherwise, create and use the zoekt_data subdirectory.

Types

This section is empty.

Jump to

Keyboard shortcuts

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