cli

package
v2.0.0-...-393756c Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActualOS

type ActualOS struct{}

func (ActualOS) Create

func (ActualOS) Create(name string) (*os.File, error)

func (ActualOS) ReadFile

func (ActualOS) ReadFile(name string) ([]byte, error)

type App

type App struct {
	OS OSInterface
}

func (*App) Run

func (a *App) Run()

type OSInterface

type OSInterface interface {
	ReadFile(name string) ([]byte, error)
	Create(name string) (*os.File, error)
}

Jump to

Keyboard shortcuts

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