simplefileapi

package
v0.1.5 Latest Latest
Warning

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

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

Documentation

Overview

Package simplefileapi provides a fake implementation of the filesystem.FileAPI interface.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SimpleFileAPI

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

SimpleFileAPI is a fake implementation of the filesystem.FileAPI interface.

func New

func New(path string, info fs.FileInfo) *SimpleFileAPI

New creates a new FakeFileAPI.

func (SimpleFileAPI) Path

func (f SimpleFileAPI) Path() string

Path returns the path of the file.

func (SimpleFileAPI) Stat

func (f SimpleFileAPI) Stat() (fs.FileInfo, error)

Stat returns the file information.

Jump to

Keyboard shortcuts

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