progdoc/assets.go

19 lines
244 B
Go
Raw Permalink Normal View History

2026-02-02 10:25:43 +00:00
package progdoc
import (
"io"
"os"
)
type staticSource interface {
Open() (io.ReadCloser, error)
}
type fileStaticSource struct {
Filename string
}
func (f fileStaticSource) Open() (io.ReadCloser, error) {
return os.Open(f.Filename)
}