util

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDir

func CreateDir(path string)

CreateDir creates a directory at the given path if it doesn't exist.

func ExitOnError

func ExitOnError(err error, msg string)

ExitOnError checks if an error occurred and exits the program with a non-zero status code.

func MoveDirectory

func MoveDirectory(src string, dst string) error

MoveDirectory moves the directory and it contents from source to destination location

func MoveFile

func MoveFile(src string, dst string) error

MoveFile moves the file from source to destination location

func WriteToFile

func WriteToFile(path string, data string)

WriteToFile creates a file if it doesn't exist and writes data to a file.

Types

This section is empty.

Jump to

Keyboard shortcuts

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