Documentation ¶
Index ¶
- type Cache
- type Dir
- func (d *Dir) DirGenerator(path string, generator DirGenerator)
- func (d *Dir) ExternalGenerator(path string, generator ExternalGenerator)
- func (d *Dir) FileGenerator(path string, generator FileGenerator)
- func (d *Dir) FileServer(path string, server FileServer)
- func (d *Dir) GenerateDir(path string, fn func(fsys FS, dir *Dir) error)
- func (d *Dir) GenerateExternal(path string, fn func(fsys FS, file *External) error)
- func (d *Dir) GenerateFile(path string, fn func(fsys FS, file *File) error)
- func (d *Dir) Mode() fs.FileMode
- func (d *Dir) Mount(mount fs.FS) error
- func (d *Dir) Path() string
- func (d *Dir) Relative() string
- func (d *Dir) ServeFile(path string, fn func(fsys FS, file *File) error)
- func (d *Dir) Target() string
- type DirGenerator
- type Embed
- type External
- type ExternalGenerator
- type FS
- type File
- type FileGenerator
- type FileServer
- type FileSystem
- func (f *FileSystem) DirGenerator(path string, generator DirGenerator)
- func (f *FileSystem) ExternalGenerator(path string, generator ExternalGenerator)
- func (f *FileSystem) FileGenerator(path string, generator FileGenerator)
- func (f *FileSystem) FileServer(dir string, server FileServer)
- func (f *FileSystem) GenerateDir(path string, fn func(fsys FS, dir *Dir) error)
- func (f *FileSystem) GenerateExternal(path string, fn func(fsys FS, file *External) error)
- func (f *FileSystem) GenerateFile(path string, fn func(fsys FS, file *File) error)
- func (f *FileSystem) Open(target string) (fs.File, error)
- func (f *FileSystem) ReadDir(target string) ([]fs.DirEntry, error)
- func (f *FileSystem) ServeFile(dir string, fn func(fsys FS, file *File) error)
- type GenerateDir
- type GenerateFile
- type Generators
- type ServeFile
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dir ¶
type Dir struct {
// contains filtered or unexported fields
}
func (*Dir) DirGenerator ¶
func (d *Dir) DirGenerator(path string, generator DirGenerator)
func (*Dir) ExternalGenerator ¶
func (d *Dir) ExternalGenerator(path string, generator ExternalGenerator)
func (*Dir) FileGenerator ¶
func (d *Dir) FileGenerator(path string, generator FileGenerator)
func (*Dir) FileServer ¶
func (d *Dir) FileServer(path string, server FileServer)
func (*Dir) GenerateExternal ¶
func (*Dir) GenerateFile ¶
type DirGenerator ¶
type ExternalGenerator ¶
type File ¶
type File struct { Data []byte // contains filtered or unexported fields }
type FileGenerator ¶
type FileServer ¶
type FileSystem ¶
type FileSystem struct {
// contains filtered or unexported fields
}
func (*FileSystem) DirGenerator ¶
func (f *FileSystem) DirGenerator(path string, generator DirGenerator)
func (*FileSystem) ExternalGenerator ¶
func (f *FileSystem) ExternalGenerator(path string, generator ExternalGenerator)
func (*FileSystem) FileGenerator ¶
func (f *FileSystem) FileGenerator(path string, generator FileGenerator)
func (*FileSystem) FileServer ¶
func (f *FileSystem) FileServer(dir string, server FileServer)
func (*FileSystem) GenerateDir ¶
func (f *FileSystem) GenerateDir(path string, fn func(fsys FS, dir *Dir) error)
func (*FileSystem) GenerateExternal ¶
func (f *FileSystem) GenerateExternal(path string, fn func(fsys FS, file *External) error)
func (*FileSystem) GenerateFile ¶
func (f *FileSystem) GenerateFile(path string, fn func(fsys FS, file *File) error)
type GenerateDir ¶
func (GenerateDir) GenerateDir ¶
func (fn GenerateDir) GenerateDir(fsys FS, dir *Dir) error
type GenerateFile ¶
func (GenerateFile) GenerateFile ¶
func (fn GenerateFile) GenerateFile(fsys FS, file *File) error
type Generators ¶
type Generators interface { GenerateFile(path string, fn func(fsys FS, file *File) error) FileGenerator(path string, generator FileGenerator) GenerateDir(path string, fn func(fsys FS, dir *Dir) error) DirGenerator(path string, generator DirGenerator) ServeFile(dir string, fn func(fsys FS, file *File) error) FileServer(dir string, server FileServer) GenerateExternal(path string, fn func(fsys FS, file *External) error) ExternalGenerator(path string, generator ExternalGenerator) }
Click to show internal directories.
Click to hide internal directories.