Versions in this module Expand all Collapse all v1 v1.0.1 Apr 12, 2022 v1.0.0 Apr 12, 2022 Changes in this version + func BuildDsn(conf config) string + func ReadDir(vfs FileSystem, name string) ([]fs.DirEntry, error) + func ReadFile(vfs FileSystem, name string) ([]byte, error) + func RegisterDriver(driver string, d Driver) + func WriteFile(vfs FileSystem, name string, data []byte) error + type Config struct + func (conf *Config) Decode(query url.Values) error + func (conf *Config) Driver() string + func (conf *Config) Encode() url.Values + func (conf *Config) Host() string + func (conf *Config) Path() string + func (conf *Config) StringDecode(querystring string) error + func (conf *Config) StringEncode() string + func (conf *Config) UserInfo() *url.Userinfo + type Driver interface + Open func(uri *url.URL) (FileSystem, error) + type File interface + func OpenFile(vfs FileSystem, name string) (File, error) + type FileSystem interface + Create func(name string) (File, error) + Exists func(name string) bool + IsDir func(name string) bool + IsFile func(name string) bool + Mkdir func(name string, perm os.FileMode) error + MkdirAll func(path string, perm os.FileMode) error + Open func(name string) (File, error) + Remove func(name string) error + RemoveAll func(path string) error + Rename func(oldpath, newpath string) error + Stat func(name string) (os.FileInfo, error) + Sub func(dir string) (FileSystem, error) + func Open(dns string) (FileSystem, error) + type OpenFileFs interface + OpenFile func(name string) (File, error) + type ReadDirFS interface + ReadDir func(name string) ([]fs.DirEntry, error) + type ReadDirFile interface + ReadDir func(n int) ([]fs.DirEntry, error) + type ReadFileFS interface + ReadFile func(name string) ([]byte, error) + type WriteFileFS interface + WriteFile func(name string, data []byte) error