externals

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package externals is a collection of thin interfaces over untestable IO acting as testing shims.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileAccess

type FileAccess interface {
	Glob(pattern string) ([]string, error)
	ReadFile(filename string) ([]byte, error)
}

type StdFileAccess

type StdFileAccess struct {
}

func (*StdFileAccess) Glob

func (g *StdFileAccess) Glob(pattern string) ([]string, error)

func (*StdFileAccess) ReadFile

func (g *StdFileAccess) ReadFile(filename string) ([]byte, error)

Jump to

Keyboard shortcuts

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