write_strategy

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 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 added in v0.9.0

func NewCreateRawFileStrategy(absPath, relPath string) Strategy

func NewNopStrategy added in v0.9.0

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