Documentation ¶
Overview ¶
Package autofs provides the ability to look up all filesystems supported by this module. Using this package will compile a great many dependencies into the resulting binary, so unless you need to support all supported filesystems, use fsimpl.NewMux instead.
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Lookup ¶
Lookup returns an appropriate filesystem for the given URL. If a filesystem can't be found for the provided URL's scheme, an error will be returned.
Example ¶
fsys, _ := Lookup("file:///somedir") list, _ := fs.ReadDir(fsys, ".") for _, entry := range list { fmt.Printf("found %s\n", entry.Name()) }
Output:
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.