files

package
v0.0.0-...-07bccb4 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2023 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Download

func Download(url string) ([]byte, error)

func Get

func Get(urlOrPath string) (buf []byte)

func GetAbsolutePath

func GetAbsolutePath(root string) string

func GetAll

func GetAll(urlOrPaths []string) [][]byte

func List

func List(root string) []string

func SkipAll

func SkipAll(_, _ string, _ fs.DirEntry) error

func SkipDir

func SkipDir(_, _ string, d fs.DirEntry) error

func SkipSubDir

func SkipSubDir(root, path string, d fs.DirEntry) error

func Walk

func Walk(root string, readFn ReadFunc, walkDirOpts ...WalkDirOption)

Types

type ReadFunc

type ReadFunc func(path string, content []byte)

type WalkDirOption

type WalkDirOption func(root, path string, d fs.DirEntry) error

Jump to

Keyboard shortcuts

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