files

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Open = func(name string) (reader io.Reader) {
	var err error
	reader, err = os.Open(name)
	if err != nil {
		log.Panicf("Error reading from file: %s", err.Error())
	}
	return
}

Functions

func ReaderFromFileOrString

func ReaderFromFileOrString(file string, body string) (reader io.Reader)

Types

This section is empty.

Jump to

Keyboard shortcuts

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