writer

package
v0.0.0-...-004d278 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2023 License: MIT Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileWriter

type FileWriter struct {
	// contains filtered or unexported fields
}

func NewFileWriter

func NewFileWriter(dir string) (*FileWriter, error)

func (*FileWriter) Write

func (fw *FileWriter) Write(path string, data []byte) error

type StdoutWriter

type StdoutWriter struct{}

func NewStdoutWriter

func NewStdoutWriter() *StdoutWriter

func (*StdoutWriter) Write

func (s *StdoutWriter) Write(_path string, data []byte) error

type Writer

type Writer interface {
	Write(path string, data []byte) error
}

Jump to

Keyboard shortcuts

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