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

workspace

package
v1.202544.1 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultFinder = &finder{
	osStat: os.Stat,
}

DefaultFinder is the Finder with default dependencies.

Functions

func IsNotFoundError

func IsNotFoundError(err error) bool

Determines whether the provided error is a NotFoundError.

Types

type Finder

type Finder interface {
	Find(string) (string, error)
}

Finder wraps the Find method that performs the finding of the WORKSPACE file in the user's Bazel project.

type NotFoundError

type NotFoundError struct {
	StartDir string
}

Represents a failure to find a Bazel workspace.

func (*NotFoundError) Error

func (nfe *NotFoundError) Error() string

Directories

Path Synopsis
Package mock contains generated files.
Package mock contains generated files.

Jump to

Keyboard shortcuts

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