Documentation ¶
Overview ¶
Package tools contains common tools used throughout this application.
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Files ¶
Files returns all files found in paths. If recursive is false, it only returns the immediate files in the paths.
Example ¶
package main import ( "github.com/arsham/blush/internal/tools" ) func main() { tools.Files(true, "~/Documents", "/tmp") // Or dirs := []string{"~/Documents", "/tmp"} tools.Files(false, dirs...) }
Output:
func IsPlainText ¶
IsPlainText returns false if at least one of the runes in the input is not represented as a plain text in a file. Null is an exception.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.