fs

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2023 License: MIT Imports: 3 Imported by: 2

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.

Jump to

Keyboard shortcuts

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