fs

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Discovery

type Discovery interface {
	GetDir() string

	GetFilename() string

	GetFullPath() string

	Load() ([]byte, error)
}

func NewDiscovery

func NewDiscovery(
	dir string,
	filename string,
	fullPath string,
) Discovery

type FakeDiscover

type FakeDiscover struct {
	Content  string `json:"content"`
	Dir      string `json:"dir"`
	Filename string `json:"filename"`
	FullPath string `json:"fullPath"`
}

func (FakeDiscover) GetDir

func (fd FakeDiscover) GetDir() string

func (FakeDiscover) GetFilename

func (fd FakeDiscover) GetFilename() string

func (FakeDiscover) GetFullPath

func (fd FakeDiscover) GetFullPath() string

func (FakeDiscover) Load

func (fd FakeDiscover) Load() ([]byte, error)

func (FakeDiscover) String

func (fd FakeDiscover) String() string

type FileDiscovery

type FileDiscovery interface {
	Find(dir string, pattern string, shallow bool) ([]Discovery, error)
}

func NewFakeFileDiscovery

func NewFakeFileDiscovery(fds []FakeDiscover) FileDiscovery

func NewFileDiscovery

func NewFileDiscovery() FileDiscovery

Jump to

Keyboard shortcuts

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