write_strategy

package
v0.0.0-...-0f723c4 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MkdirPermissions = 0777

	NewFileMark    = "New"
	AppendFileMark = "Add"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Renderer

type Renderer interface {
	Render(io.Writer) error
}

type Strategy

type Strategy interface {
	Write(Renderer) error
}

func NewAppendToFileStrategy

func NewAppendToFileStrategy(absPath, relPath string) Strategy

func NewCreateFileStrategy

func NewCreateFileStrategy(absPath, relPath string) Strategy

func NewCreateRawFileStrategy

func NewCreateRawFileStrategy(absPath, relPath string) Strategy

func NewNopStrategy

func NewNopStrategy(string, string) Strategy

Do nothing strategy

Jump to

Keyboard shortcuts

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