Documentation ¶
Index ¶
- func BuildRegexFilterByExtension(arguments ...string) *regexp.Regexp
- func CheckDirectory(directory string, closeOnFailure bool) error
- func ContainTypeInList[T any](value T, list *[]T) bool
- func GetFileContent(absPath string) []string
- func GetFiles(directory string, libRegEx *regexp.Regexp) *[]FileWrapper
- func WriteFile(lines []string, title string)
- type DefaultFileWrapper
- type FileWrapper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckDirectory ¶
func ContainTypeInList ¶
func GetFileContent ¶
Types ¶
type DefaultFileWrapper ¶
type DefaultFileWrapper struct { FileContent []string FileInfo fs.FileInfo Path string Extension string }
func (*DefaultFileWrapper) GetExtension ¶
func (w *DefaultFileWrapper) GetExtension() string
func (*DefaultFileWrapper) GetFileContent ¶
func (w *DefaultFileWrapper) GetFileContent() []string
func (*DefaultFileWrapper) GetFileInfo ¶
func (w *DefaultFileWrapper) GetFileInfo() fs.FileInfo
func (*DefaultFileWrapper) GetPath ¶
func (w *DefaultFileWrapper) GetPath() string
Click to show internal directories.
Click to hide internal directories.