Versions in this module Expand all Collapse all v1 v1.1.0 Jul 16, 2024 v1.0.0 Jul 16, 2024 Changes in this version + type File struct + Content []byte + Name string + Path string + type FileStorage struct + func NewFileStorage(basePath string) *FileStorage + func (fs *FileStorage) HasFile(filename string) bool + func (fs *FileStorage) ListFiles() []string + func (fs *FileStorage) ReadFile(filename string) (File, error) + func (fs *FileStorage) ReadRandFile() (File, error) + func (fs *FileStorage) ReadRandFileWithExt(ext string) (File, error) + type FileStorageExt struct + func (b *FileStorageExt) XFileStorage(call goja.ConstructorCall, rt *goja.Runtime) *goja.Object