Help us shape the future of Go! Take the 2026 Go Developer Survey

paths

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package paths locates vrs repositories on disk and resolves scopes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindRoot

func FindRoot(start string) (string, bool)

FindRoot walks up from start looking for a .vrs directory. It returns the repository root and whether one was found.

func Rel

func Rel(root, target string) (string, error)

Rel returns the forward-slash path of target relative to root, or "" if target is root itself. It errors when target lies outside root.

Types

This section is empty.

Jump to

Keyboard shortcuts

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