package storage import ( "time" "go.alanpearce.eu/website/internal/buffer" ) type File struct { Path string ContentType string LastModified time.Time Etag string Encodings map[string]*buffer.Buffer } func (f *File) AvailableEncodings() []string { encs := make([]string, 0, len(f.Encodings)) for enc := range f.Encodings { encs = append(encs, enc) } return encs }