package pathutil

import "cuelang.org/go/internal/golangorgx/gopls/util/pathutil"

Index

Functions

func InDir

func InDir(dir, path string) bool

InDir checks whether path is in the file tree rooted at dir. It checks only the lexical form of the file names. It does not consider symbolic links.

Copied from go/src/cmd/go/internal/search/search.go.

Source Files

util.go

Version
v0.12.0 (latest)
Published
Jan 30, 2025
Platform
linux/amd64
Imports
2 packages
Last checked
8 hours ago

Tools for package owners.