subpkg

package
v0.0.55 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2025 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type File

type File interface {
	// Name returns the name of the file
	Name() string
	// Close closes the file
	Close() error
	// Write writes data to the file
	Write(data []byte) (int, error)
}

File represents a file interface from another package (like billy.File)

type MockFile

type MockFile struct {
	// contains filtered or unexported fields
}

MockFile is a simple implementation of the File interface

func NewMockFile

func NewMockFile(name string) *MockFile

func (*MockFile) Close

func (m *MockFile) Close() error

func (*MockFile) Name

func (m *MockFile) Name() string

func (*MockFile) Write

func (m *MockFile) Write(data []byte) (int, error)

Jump to

Keyboard shortcuts

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