"io"
"path/filepath"
+ "github.com/gohugoio/hugo/common/hugio"
"github.com/gohugoio/hugo/media"
"github.com/gohugoio/hugo/resource"
)
type multiReadSeekCloser struct {
mr io.Reader
- sources []resource.ReadSeekCloser
+ sources []hugio.ReadSeekCloser
}
func (r *multiReadSeekCloser) Read(p []byte) (n int, err error) {
resolvedm = r.MediaType()
}
- concatr := func() (resource.ReadSeekCloser, error) {
- var rcsources []resource.ReadSeekCloser
+ concatr := func() (hugio.ReadSeekCloser, error) {
+ var rcsources []hugio.ReadSeekCloser
for _, s := range resources {
rcr, ok := s.(resource.ReadSeekCloserResource)
if !ok {
"github.com/spf13/afero"
+ "github.com/gohugoio/hugo/common/hugio"
"github.com/gohugoio/hugo/resource"
)
c.rs.BaseFs.Resources.Fs,
resource.ResourceSourceDescriptor{
LazyPublish: true,
- OpenReadSeekCloser: func() (resource.ReadSeekCloser, error) {
- return resource.NewReadSeekerNoOpCloserFromString(content), nil
+ OpenReadSeekCloser: func() (hugio.ReadSeekCloser, error) {
+ return hugio.NewReadSeekerNoOpCloserFromString(content), nil
},
RelTargetFilename: filepath.Clean(targetPath)})