helpers

package
v0.11.1-0...-8ab92b3 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateFileIfNotExist

func CreateFileIfNotExist(filename string) error

func DirExists

func DirExists(dir string) bool

DirExists will return true if the directory exists

func FileExists

func FileExists(filename string) bool

func MkdirIfNotExists

func MkdirIfNotExists(dir string) error

MkdirIfNotExists is responsible for making a directory if the provided directory does not exist. It only argument is a dir, which is a path to a dir

func RemoveTrailingSlash

func RemoveTrailingSlash(v string) string

RemoveTrailingSlash is used to take a string and remove the trailing slash from the provided string

Types

This section is empty.

Jump to

Keyboard shortcuts

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