golang-lib/web/file/fs/fileinfo.go

20 lines
404 B
Go
Raw Normal View History

2021-07-26 17:48:20 +02:00
package fs
import (
"os"
"github.com/google/uuid"
)
type FileInfo struct {
id uuid.UUID
name string
contentType string
os.FileInfo
}
func (fi FileInfo) ID() uuid.UUID { return fi.id }
func (fi FileInfo) ContentType() string { return fi.contentType }
func (fi FileInfo) Name() string { return fi.name }
func (fi FileInfo) Sys() interface{} { return fi.FileInfo }