utils

package
v0.0.0-...-509512d Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Log = logrus.New()

Functions

func Copy

func Copy(src, dst string) (int64, error)

func DownloadFile

func DownloadFile(filepath string, url string) error

func FileExists

func FileExists(name string) bool

func FileToString

func FileToString(filePath string) string

func GetConfigDir

func GetConfigDir() (string, error)

func IsDirectory

func IsDirectory(path string) (bool, error)

func LinesCount

func LinesCount(s string) int

func MakeFolder

func MakeFolder(path string)

func ReadModuleFile

func ReadModuleFile(path string) (*models.Module, error)

func RunCommand

func RunCommand(command string, background bool)

func SetLogLevel

func SetLogLevel(level string)

func SetProxy

func SetProxy(proxyURL string)

func StringToFile

func StringToFile(filePath, text string)

func Unzip

func Unzip(src, dest 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