filesystem

package
v1.260113.0 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2026 License: MPL-2.0 Imports: 6 Imported by: 40

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyFile

func CopyFile(dst string, src string) error

func DecodeVarint added in v1.260113.0

func DecodeVarint(buf []byte) (x uint64, n int)

func Find added in v1.260113.0

func Find(data, code []byte) []byte

func ReadAsset

func ReadAsset(file string) ([]byte, error)

func ReadCert added in v1.250516.0

func ReadCert(file string) ([]byte, error)

func ReadFile

func ReadFile(path string) ([]byte, error)

Types

type FileReaderFunc

type FileReaderFunc func(path string) (io.ReadCloser, error)
var NewFileReader FileReaderFunc = func(path string) (io.ReadCloser, error) {
	return os.Open(path)
}

Jump to

Keyboard shortcuts

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