fs

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FS

type FS struct {
	// contains filtered or unexported fields
}

FS implements an fs.FS provider.

func Provider

func Provider(fs fs.FS, filepath string) *FS

Provider returns an fs.FS provider.

func (*FS) Read

func (f *FS) Read() (map[string]interface{}, error)

Read is not supported by the fs.FS provider.

func (*FS) ReadBytes

func (f *FS) ReadBytes() ([]byte, error)

ReadBytes reads the contents of given filepath from fs.FS and returns the bytes.

func (*FS) Watch

func (f *FS) Watch(cb func(event interface{}, err error)) error

Watch is not supported by the fs.FS provider.

Jump to

Keyboard shortcuts

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