file

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ImportFile

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

ImportFile Import file content from a given file path. file the file to read

func ImportFolder

func ImportFolder(folder string) (iter.Seq[*ImportedFile], error)

ImportFolder Import all files from a given folder path. folder the folder to read

Types

type ImportedFile

type ImportedFile struct {
	Path    string
	Content []byte
}

Jump to

Keyboard shortcuts

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