fileutil

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: May 26, 2021 License: MIT Imports: 5 Imported by: 12

Documentation

Overview

Package fileutil contains all the funcionality related to deal with files

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileExists

func FileExists(filename string) bool

FileExists checks if a file exists and is not a directory

func FileNameIsGlob added in v1.0.6

func FileNameIsGlob(pattern string) bool

FileNameIsGlob check if the filanem is a pattern

func FolderExists added in v0.0.7

func FolderExists(folderpath string) bool

FolderExists checks if a folder exists

func HasStdin

func HasStdin() bool

HasStdin determines if the user has piped input

func ListFilesWithPattern added in v1.0.6

func ListFilesWithPattern(rootpattern string) ([]string, error)

ListFilesWithPattern in a root folder

func LoadFile added in v1.0.4

func LoadFile(filename string) (lines []string)

LoadFile content to slice

Types

This section is empty.

Jump to

Keyboard shortcuts

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