21 lines
354 B
Go
21 lines
354 B
Go
package webfilesystem
|
|
|
|
import "github.com/google/uuid"
|
|
|
|
type WebFileSystem struct {
|
|
folders []*Folder
|
|
}
|
|
|
|
func (fs *WebFileSystem) List() []*File {
|
|
return []*File{{uuid.NewString(), "Kek.kek"}, {uuid.NewString(), "lel.lol"}, {uuid.NewString(), "lel.img"}}
|
|
}
|
|
|
|
type Folder struct {
|
|
files []*File
|
|
}
|
|
|
|
type File struct {
|
|
Id string
|
|
FileName string
|
|
}
|