utils

package
v0.0.0-...-486efdd Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChangePermission

func ChangePermission(filePath string, mod int)

func Done

func Done(v ...any)

func Fatal

func Fatal(v ...any)

func Fatalf

func Fatalf(msg string, v ...any)

func FileExists

func FileExists(filename string) bool

func FlagGetBool

func FlagGetBool(cmd *cobra.Command, flagName string) bool

func FlagGetString

func FlagGetString(cmd *cobra.Command, flagName string) string

func GetEnv

func GetEnv(cmd *cobra.Command, flagName, envName string) string

func Info

func Info(v ...any)

func IsDirEmpty

func IsDirEmpty(name string) (bool, error)

func SetEnv

func SetEnv(key, value string)

func WriteToFile

func WriteToFile(filePath, content 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