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
Click to show internal directories.
Click to hide internal directories.