write_strategy

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2018 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