utils

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateFile

func CreateFile(filepath string, filename string) (fo *os.File, err error)

Creates a file given a path and a name for the file

func ExtractTarGz

func ExtractTarGz(gzipStream io.Reader) string

func InitFolder

func InitFolder(folder_name string) error

Creates (if dont exists) a folder given a name

func MoveFile

func MoveFile(sourcePath, destPath string) error

func ReadLines

func ReadLines(path string) ([]string, error)

Auxiliar function to read lines from a file path. return a string array with all the lines in the file and an error if fails ->(lines, error)

func RemoveFolderContents

func RemoveFolderContents(dir string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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