Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Filesystem ¶
type Filesystem struct {
// contains filtered or unexported fields
}
func (*Filesystem) FileExists ¶
func (f *Filesystem) FileExists(path string) bool
FileExists returns true if the file exists and is not a directory.
func (*Filesystem) Read ¶
func (f *Filesystem) Read(path string) ([]byte, error)
Read returns the content of the file. If the file does not exist, no error is returned.
func (*Filesystem) Sources ¶
func (f *Filesystem) Sources(extensions []string) ([]string, error)
Sources expects the extension with a dot: [".md"].
func (*Filesystem) Write ¶
func (f *Filesystem) Write(path, content string) error
Click to show internal directories.
Click to hide internal directories.