util

package
v1.4.4 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownloadFile

func DownloadFile(URL, savePath string, retry int) error

DownloadFile try to download file from URL and save to savePath multiple times.

func SubCmdRun added in v1.4.0

func SubCmdRun() func(c *cobra.Command, args []string)

SubCmdRun returns a function that handles a case where a subcommand must be specified Without this callback, if a user runs just the command without a subcommand, or with an invalid subcommand, cobra will print usage information, but still exit cleanly.

func Untar

func Untar(tarFile, dest string) error

Untar unzip the file to the target directory.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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