all repos — website @ 3162ceaa0f7997742f8c2fce1c9660e8e86ad5bb

My website

use buffers as interface to storage

Alan Pearce
commit

3162ceaa0f7997742f8c2fce1c9660e8e86ad5bb

parent

a93b5ad88ea3cf742cf03fdeeb95f63865f08374

1 file changed, 3 insertions(+), 2 deletions(-)

changed files
M internal/storage/file.gointernal/storage/file.go
@@ -1,8 +1,9 @@
package storage import ( - "io" "time" + + "go.alanpearce.eu/website/internal/buffer" ) type File struct {
@@ -10,7 +11,7 @@ Path string
ContentType string LastModified time.Time Etag string - Encodings map[string]io.ReadSeekCloser + Encodings map[string]*buffer.Buffer } func (f *File) AvailableEncodings() []string {