fileutil

package
v1.2.7 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2023 License: MIT Imports: 8 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 FileNameIsGlob added in v1.0.6

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 added in v1.0.6

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

ListFilesWithPattern in a root folder

func LoadCidrsFromSliceOrFileWithMaxRecursion added in v1.1.4

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

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