all repos — homestead @ 65039b065ba634b9c4b4c7f4b42ebccdbfd40ce0

Code for my website

remove buffers in file writer

Alan Pearce
commit

65039b065ba634b9c4b4c7f4b42ebccdbfd40ce0

parent

f7d8beffaa09ecf863996d29c72f508eb3952c84

1 file changed, 6 insertions(+), 5 deletions(-)

changed files
M shared/storage/interface.goshared/storage/interface.go
@@ -1,8 +1,9 @@
package storage import ( + "io" + "alin.ovh/homestead/domain/content" - "alin.ovh/homestead/shared/buffer" ) type Reader interface {
@@ -13,9 +14,9 @@
type Writer interface { Mkdirp(path string) error - NewFileFromPost(post *content.Post) *File + NewFileFromPost(*content.Post) *File - Write(pathname string, title string, content *buffer.Buffer) error - WritePost(post *content.Post, content *buffer.Buffer) error - WriteFile(file *File, content *buffer.Buffer) error + Write(string, string, io.WriterTo) error + WritePost(*content.Post, io.WriterTo) error + WriteFile(*File, io.WriterTo) error }