util

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertFSToBytes

func ConvertFSToBytes(inFS FS, name string) ([][]byte, error)

func CopyDir

func CopyDir(src fs.FS, dest string) error

func CopyFile

func CopyFile(src fs.File, dest string) error

func WriteFS

func WriteFS(src fs.FS, dest string) error

Types

type FS

type FS interface {
	ReadDir(name string) ([]fs.DirEntry, error)
	ReadFile(name string) ([]byte, error)
}

Jump to

Keyboard shortcuts

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