io

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUnknownFileExtension = errors.New("unknown file extension")
)

Functions

This section is empty.

Types

type BaseIO

type BaseIO struct {
	Fs afero.Fs
}

func (BaseIO) ReadFile

func (b BaseIO) ReadFile(name, ext string) ([]byte, error)

func (BaseIO) WriteFile

func (b BaseIO) WriteFile(name, ext string, data []byte, perm fs.FileMode) error

type IO

type IO interface {
	ReadFile(name string, v interface{}) error
	WriteFile(name string, v interface{}, perm fs.FileMode) error
	Ext() string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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