webroot

package
v0.11.1-0...-8ab92b3 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrNotFound is returned when unable to find a web root for a specified path
	ErrNotFound = fmt.Errorf("unable to locate a web root")
)

Functions

func Find

func Find(path string) (string, error)

Find takes a path and will check for the web root of the project. Find will look for web, public, and public_html directories and return when the first directory match. If it cannot find the web root it will return an error.

Types

This section is empty.

Jump to

Keyboard shortcuts

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