autofs

package
v0.0.0-...-7d77a24 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2023 License: MIT Imports: 11 Imported by: 0

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

func Lookup(u string) (fs.FS, error)

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.

Jump to

Keyboard shortcuts

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