Documentation ¶
Index ¶
- func AbsolutePath(relativePath string) string
- func CopyDirectory(sourceDirectory string, targetDirectory string) (int, error)
- func CopyFile(source string, destination string) error
- func FileName(filePath string) string
- func ParseMarkdown(text []byte) (map[string]interface{}, string)
- func PathToIdentifier(filePath string) string
- func PathToTitle(filePath string) string
- func ReadFiles(directoryPath string, pathPrefix string) (map[string]File, error)
- func RenderMarkdown(text []byte) string
- func WriteFile(targetFilePath string, contents string) error
- type File
- type FileType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AbsolutePath ¶
Convert a relative path to an absolute path, relative to the current working directory.
func CopyDirectory ¶
Copy a directory into another.
func CopyFile ¶
Copy a file from a source to a destination. Taken from: https://opensource.com/article/18/6/copying-files-go
func ParseMarkdown ¶
Parse markdown, rendering it to HTML and returning the metadata as a map.
func PathToIdentifier ¶
Convert a path into a page/post ID.
Types ¶
Click to show internal directories.
Click to hide internal directories.