vfsutil

package module
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 10, 2019 License: MIT Imports: 2 Imported by: 1

Documentation

Overview

Package vfsutil implements some helper types and functions for use with godoc's vfs package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LabeledFS

func LabeledFS(fs vfs.FileSystem, label string) vfs.FileSystem

LabeledFS attaches a label to an existing vfs.FileSystem.

func LabeledOS

func LabeledOS(root string, label string) vfs.FileSystem

LabeledOS calls vfs.OS and attaches a label to the vfs.FileSystem created.

Types

type FSInfo added in v0.2.0

type FSInfo interface {
	Label() string
	Root() string
}

The FSInfo interface is satisfied by the file object returned by labeledFileSystem.Open, and by the fileInfo object returned by labeledFileSystem.Stat.

Jump to

Keyboard shortcuts

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