Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrFileEmpty is an error to signify the file is empty ErrFileEmpty = errors.New("file is empty") // ErrFileNotText is an error to signify the file type is not a text file that can be read ErrFileNotText = errors.New("file is not a text file") // ErrIsDir is an error to signify a directory ErrIsDir = errors.New("file is a directory") )
Functions ¶
func ContainsAlphanumeric ¶
ContainsAlphanumeric returns true if alphanumeric chars are found in the string
func FilterEmptyStrings ¶
func IsTextFile ¶
IsTextFile returns an error if the file is not of content-type 'text/*'
func IsTextFileFromFilename ¶
IsTextFileFromFilename returns an error if the filename is not of content-type 'text/*'
func MarkdownCodify ¶
MarkdownCodify returns a markdown code string https://www.markdownguide.org/basic-syntax/#code
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.