all repos — homestead @ 4c07535d9120fb999b0c008f1866972865f424f7

Code for my website

replace tozd/errors with Southclaws/fault

Alan Pearce
commit

4c07535d9120fb999b0c008f1866972865f424f7

parent

90a4ac43b915abb7a2949f4b5313b40d705b6071

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

changed files
M internal/storage/interface.gointernal/storage/interface.go
@@ -1,22 +1,21 @@
package storage import ( - "gitlab.com/tozd/go/errors" "go.alanpearce.eu/homestead/internal/buffer" "go.alanpearce.eu/homestead/internal/content" ) type Reader interface { - GetFile(path string) (*File, errors.E) + GetFile(path string) (*File, error) CanonicalisePath(path string) (string, bool) } type Writer interface { - Mkdirp(path string) errors.E + Mkdirp(path string) error NewFileFromPost(post *content.Post) *File - Write(pathname string, title string, content *buffer.Buffer) errors.E - WritePost(post *content.Post, content *buffer.Buffer) errors.E - WriteFile(file *File, content *buffer.Buffer) errors.E + Write(pathname string, title string, content *buffer.Buffer) error + WritePost(post *content.Post, content *buffer.Buffer) error + WriteFile(file *File, content *buffer.Buffer) error }