util

package
v0.0.0-...-512021a Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyDir

func CopyDir(fsys fs.FS, srcDir, dstDir string) error

func CopyFile

func CopyFile(src, dst string) error

Copy a file

func DownloadFile

func DownloadFile(url string, dest string) error

func IsFileExist

func IsFileExist(path string) bool

func RunCommand

func RunCommand(envVars []string, name string, args ...string) error

Helper function to run a command

func RunGoModTidy

func RunGoModTidy() error

func RunGolang

func RunGolang(envVars []string, args ...string) error

func RunGoplus

func RunGoplus(envVars []string, args ...string) error

func SetupFile

func SetupFile(force bool, name, embed string, args ...any) error

func Unzip

func Unzip(zipfile, dest string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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