Versions in this module Expand all Collapse all v0 v0.2.0 Mar 5, 2023 v0.1.0 Mar 5, 2023 Changes in this version + const ColorCyan + const ColorGold + const ColorGreen + const ColorPink + const ColorRed + const ColorReset + var NotFoundError = errors.New("Info not found while fetching data") + func DeleteSentenceFromFile(filePath, searchString string) error + func FilterSentenceFromFile(fsys fs.FS, filePath string, searchString string) ([]byte, error) + func GetHomeDir() string + func GetWords(fsys fs.FS, filename string, numberOfLines int) ([]string, error) + func HttpGetDictionary(parser func(io.Reader, int) (T, error), url string) (T, error) + func MoveSentenceToFile(trashPath, wordsPath, sentence string) error + func OverrideFile(data []byte, filepath string) error + func PrintGreen(out io.Writer, message string) + func PrintRed(out io.Writer, message string) + func PrintWithColor(out io.Writer, message, color string) + func WriteFile(sentence, filepath string) error + type File struct + FilePath string + func (f File) ReadFile() string + type IFile interface + ReadFile func() string + type UserFilePath struct + ManualInsertFile string + TrashFile string + WriteFile string