Documentation ¶ Index ¶ Variables func Find(path string) (string, error) 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. Source Files ¶ View all Source files webroot.go Click to show internal directories. Click to hide internal directories.