write

package
Version: v0.0.0-...-c6c09a8 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2020 License: MIT Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileStore

type FileStore struct{}

func (FileStore) MkdirAll

func (fs FileStore) MkdirAll(path string, perm os.FileMode) error

func (FileStore) WriteFile

func (fs FileStore) WriteFile(filename string, data []byte, perm os.FileMode) error

type Store

type Store interface {
	MkdirAll(path string, perm os.FileMode) error
	WriteFile(filename string, data []byte, perm os.FileMode) error
}

type Writer

type Writer struct {
	Store Store
}

func (*Writer) SaveToFile

func (w *Writer) SaveToFile(fileName string, output string)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL