utils

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains

func Contains(s []string, e string) bool

func Download

func Download(fullURLFile string, destPath string) error

func GetCpuModel

func GetCpuModel() string

GetCpuModel get cpu model

func GetRandomString

func GetRandomString(length int) string

func IndexOf

func IndexOf(slice []string, e string) int

func RandomPort

func RandomPort() int

func Remove

func Remove(slice []string, e string) []string

func RemoveIndex

func RemoveIndex(slice []string, s int) []string

func UnTar

func UnTar(src io.Reader, dst string) error

func UnZip

func UnZip(src string, dst string) ([]string, error)

unzip will decompress a zip archive, moving all files and folders within the zip file (parameter 1) to an output directory (parameter 2).

Types

This section is empty.

Jump to

Keyboard shortcuts

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