fs

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2023 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 Source

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

Source is a local file source

func New

func New(options ...source.Option) (*Source, error)

New source

func (*Source) GetExtend

func (s *Source) GetExtend() source.Scheme

GetExtend get extend

func (*Source) Open

func (s *Source) Open(name string) (fs.File, error)

Open a file for reading

func (*Source) ReadFile

func (s *Source) ReadFile(name string) (rb []byte, err error)

ReadFile read file

Jump to

Keyboard shortcuts

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