blob: 6c8f3cd30d50c483a92fd68b1462ba22274a1d42 (
plain)
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
}
|