all repos — website @ 04809ffd7971032818238db14feb6d3c95470e3b

My website

internal/storage/interface.go (view raw)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package storage

import (
	"io"

	"github.com/a-h/templ"
)

type Writer interface {
	Mkdirp(path string) error

	Open(filename string) (io.ReadCloser, error)

	OpenFileAndVariants(filename string) (io.WriteCloser, error)

	OutputToFile(output io.Reader, filename string) error

	RenderToFile(component templ.Component, filename string) error

	WriterToFile(writer io.WriterTo, filename string) error
}