personal-website/webfilesystem/webfilesystem.go

21 lines
354 B
Go
Raw Normal View History

2023-03-22 21:53:06 +00:00
package webfilesystem
2023-04-12 17:04:25 +00:00
import "github.com/google/uuid"
2023-03-22 21:53:06 +00:00
type WebFileSystem struct {
folders []*Folder
}
func (fs *WebFileSystem) List() []*File {
2023-04-12 21:05:23 +00:00
return []*File{{uuid.NewString(), "Kek.kek"}, {uuid.NewString(), "lel.lol"}, {uuid.NewString(), "lel.img"}}
2023-03-22 21:53:06 +00:00
}
type Folder struct {
files []*File
}
type File struct {
2023-04-12 17:04:25 +00:00
Id string
2023-03-22 21:53:06 +00:00
FileName string
}