utils

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalculateFileSHA256

func CalculateFileSHA256(p string) (string, error)

func DownloadFile

func DownloadFile(url string, destination string) error

func ExtractFileFromTarGz

func ExtractFileFromTarGz(archivePath, targetFilename string) (string, error)

func ReadFile

func ReadFile(p string) ([]string, error)

func SliceContains

func SliceContains[T comparable](a T, list []T) bool

StringInSlice checks if a string is present in slice

func ValidateFileSha256

func ValidateFileSha256(p string, sha256Str 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