Documentation
¶
Index ¶
- Variables
- func Contains[T comparable](slice []T, item T) bool
- func DeepClone(src, dst interface{}) error
- func DownloadFile(url, target string) error
- func ExtractTar(reader io.Reader, dest string) error
- func ExtractTarFromFile(src, dest string) error
- func ExtractTarGz(gzipStream io.Reader, dest string) error
- func GetArch() string
- func GetFileSha256(path string) (string, error)
- func GetFilesSha256(paths []string) (string, error)
- func GetGitBranch(path string) (string, error)
- func GetGitCommit(path string) (string, error)
- func GetGitOwner(path string) (string, error)
- func GetPipeImage(image string) string
- func IsDirExists(path string) bool
- func IsFileExists(path string) bool
- func MergeMaps[K comparable, V any](maps ...map[K]V) map[K]V
- func NewID(prefix string) string
Constants ¶
This section is empty.
Variables ¶
View Source
var ColorCyan = color.New(color.FgCyan).SprintFunc()
View Source
var ColorGreen = color.New(color.FgGreen).SprintFunc()
View Source
var ColorGrey = color.New(color.FgHiBlack).SprintFunc()
View Source
var ColorRed = color.New(color.FgRed).SprintFunc()
Functions ¶
func Contains ¶
func Contains[T comparable](slice []T, item T) bool
func DownloadFile ¶ added in v0.2.0
func ExtractTarFromFile ¶ added in v0.2.0
func GetFileSha256 ¶
func GetFilesSha256 ¶
func GetGitBranch ¶
func GetGitCommit ¶
func GetGitOwner ¶
func GetPipeImage ¶
func IsDirExists ¶
func IsFileExists ¶
func MergeMaps ¶
func MergeMaps[K comparable, V any](maps ...map[K]V) map[K]V
Types ¶
This section is empty.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.