package storage import ( "go.alanpearce.eu/homestead/internal/buffer" "go.alanpearce.eu/homestead/internal/content" ) type Reader interface { GetFile(path string) (*File, error) CanonicalisePath(path string) (string, bool) } type Writer interface { Mkdirp(path string) error Write(pathname string, content *buffer.Buffer) error WritePost(post *content.Post, content *buffer.Buffer) error WriteFile(file *File, content *buffer.Buffer) error }