all repos — homestead @ db6f2461ccd1e17e620451aab958068f6ca1664e

Code for my website

use buffers as interface to storage

Alan Pearce
commit

db6f2461ccd1e17e620451aab958068f6ca1664e

parent

89e01856dc026ca3c32f81a4ee8f233efd0e232c

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 {