util

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyFileFromTemplate

func CopyFileFromTemplate(fs embed.FS, template string, target string) error

CopyFileFromTemplate takes in a template FS full template and target path, checks if the file does not exist and copies the file.

func FileExists

func FileExists(file string) bool

FileExists takes a full file path and checks if the file exists and returns true or false.

func PrintError

func PrintError(msg string, err error)

func PrintFatal

func PrintFatal(msg string, err error)

func PrintInfo

func PrintInfo(msg string)

func PrintResult

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

func PrintSuccess

func PrintSuccess(msg string)

func PrintWarning

func PrintWarning(msg string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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