filewriter

package
v0.0.0-...-44e12ef Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2024 License: BSD-2-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CompressConfig

type CompressConfig struct {
	Methods    []string `yaml:"methods"`
	Extensions []string `yaml:"extensions"`
}

site.yaml -> compress:

type Compressor

type Compressor struct {
	Ext string
	New func(w io.Writer) io.WriteCloser
}

type FileWriter

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

func New

func New(c *CompressConfig) (*FileWriter, error)

func (*FileWriter) CopyFile

func (f *FileWriter) CopyFile(outfile, infile string) error

func (*FileWriter) WriteFile

func (f *FileWriter) WriteFile(filename string, data []byte) error

Jump to

Keyboard shortcuts

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