Documentation ¶
Index ¶
- Variables
- type StubFileSystem
- func (s StubFileSystem) Create(name string) (io.Writer, error)
- func (s StubFileSystem) GetContentRoot() string
- func (s StubFileSystem) GetTemplateLocation() string
- func (s StubFileSystem) MkdirAll(path string, perm os.FileMode) error
- func (s StubFileSystem) ReadDir(name string) ([]fs.DirEntry, error)
- func (s StubFileSystem) ReadFile(filename string) ([]byte, error)
- func (s StubFileSystem) Stat(name string) (os.FileInfo, error)
- func (s StubFileSystem) WriteFile(name string, data []byte, perm os.FileMode) error
Constants ¶
This section is empty.
Variables ¶
View Source
var (
StubFS = StubFileSystem{
FS: mockFS,
ContentRoot: "web/content",
TemplateLocation: "base_template.html",
}
)
Functions ¶
This section is empty.
Types ¶
type StubFileSystem ¶
func (StubFileSystem) Create ¶
func (s StubFileSystem) Create(name string) (io.Writer, error)
Create creates a file with the given name
func (StubFileSystem) GetContentRoot ¶
func (s StubFileSystem) GetContentRoot() string
func (StubFileSystem) GetTemplateLocation ¶
func (s StubFileSystem) GetTemplateLocation() string
Click to show internal directories.
Click to hide internal directories.