utils

package
v0.72.0-alpha Latest Latest
Warning

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

Go to latest
Published: May 29, 2023 License: MIT Imports: 11 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckFileExistence

func CheckFileExistence(filePath string) bool

func CheckFilesExistence

func CheckFilesExistence(fileList []string) bool

func CheckFloat64SubType

func CheckFloat64SubType(f float64)

func ConvertIntArrayToStringArray

func ConvertIntArrayToStringArray(intArray []int) []string

func ConvertStringArrayToIntArray

func ConvertStringArrayToIntArray(stringArray []string) []int

func CreateTempDir

func CreateTempDir(filePath string) string

func DecodeBase64

func DecodeBase64(b64 string) []byte

func DirCopy

func DirCopy(src string, dest string, info os.FileInfo) error

func FileCopy

func FileCopy(src string, dest string, info os.FileInfo) error

func FloatToString

func FloatToString(input_num float64) string

func GenerateCsvFileBasedOnVarAppend

func GenerateCsvFileBasedOnVarAppend(strVarSlice []string, filePath string)

func GenerateCsvFileBasedOnVarOverride

func GenerateCsvFileBasedOnVarOverride(strVarSlice []string, filePath string)

func GenerateFileBasedOnVarAppend

func GenerateFileBasedOnVarAppend(strVar string, filePath string)

func GenerateFileBasedOnVarOverride

func GenerateFileBasedOnVarOverride(strVar string, filePath string)

func GeneratePicture

func GeneratePicture(bytesVar []byte, filePath string)

func GetAbsPath

func GetAbsPath(path string) string

for path contains ~

func GetAbsPaths

func GetAbsPaths(paths []string) []string

func GetContentFromFile

func GetContentFromFile(filePath string) []byte

func GetCsvFromFile

func GetCsvFromFile(filePath string) [][]string

func GetCurrentDir

func GetCurrentDir() string

func GetJsonFromFile

func GetJsonFromFile(filePath string) string

func GetOsEnviron

func GetOsEnviron() map[string]string

func WalkPath

func WalkPath(searchDir string, extension string) ([]string, error)

for the dir and sub-dir

Types

This section is empty.

Jump to

Keyboard shortcuts

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