opts

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultInit = Init{
	Fs: afero.NewOsFs(),
}
View Source
var DefaultPrint = Print{
	Clean:    true,
	NewLine:  true,
	Prefixed: true,
}
View Source
var DefaultRead = Read{
	Fs: afero.NewOsFs(),
}
View Source
var DefaultWrite = Write{
	Fs: afero.NewOsFs(),
}

Functions

func IncludeNewLine

func IncludeNewLine(o *Print)

func IncludePrefix

func IncludePrefix(o *Print)

Types

type Init

type Init struct {
	Fs afero.Fs
}

type InitOp

type InitOp func(*Init)

func WithInitFs

func WithInitFs(fs afero.Fs) InitOp

type Print

type Print struct {
	Clean    bool
	NewLine  bool
	Prefixed bool
}

type PrintOp

type PrintOp func(*Print)

func PrintClean

func PrintClean(clean bool) PrintOp

func PrintNewLine

func PrintNewLine(newLine bool) PrintOp

func PrintPrefixed

func PrintPrefixed(prefixed bool) PrintOp

type Read

type Read struct {
	Fs afero.Fs
}

type ReadOp

type ReadOp func(*Read)

func WithReadFs

func WithReadFs(fs afero.Fs) ReadOp

type Write

type Write struct {
	Fs afero.Fs
}

type WriteOp

type WriteOp func(*Write)

func WithWriteFs

func WithWriteFs(fs afero.Fs) WriteOp

Jump to

Keyboard shortcuts

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