ioutil

package
v1.1.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 22, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyExtraFiles

func CopyExtraFiles(inDir string, outDir string, files map[string]bool) error

Move extra files like assets (images, fonts, css) over to output, preserving the file structure.

func EnsureDir

func EnsureDir(dir string) error

Ensure a directory exists

func IsEntryPresent

func IsEntryPresent(f string) (bool, error)

Check for markdown files under directory

func IsFileExist

func IsFileExist(f string) (bool, error)

Return true/false if a path exists/doesn't exist

func RemoveContents

func RemoveContents(contents []string) error

OS delete given files

func RemoveHiddenFiles

func RemoveHiddenFiles(inDir string, files []string) []string

Remove hidden files from slice of files

func ReorderFiles

func ReorderFiles(files []string) []string

Move all index.md from files to the end so they are processed last

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL