fileutil

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: May 21, 2024 License: MIT Imports: 8 Imported by: 0

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 AbsPathOrDefault

func AbsPathOrDefault(p string) string

func FileNameIsGlob

func FileNameIsGlob(pattern string) bool

FileNameIsGlob check if the filanem is a pattern

func HasStdin

func HasStdin() bool

HasStdin determines if the user has piped input

func ListFilesWithPattern

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

ListFilesWithPattern in a root folder

func LoadCidrsFromSliceOrFileWithMaxRecursion

func LoadCidrsFromSliceOrFileWithMaxRecursion(option string, splitchar string, maxRecursion int) (networkList []string)

func LoadFile

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