helper

package
v0.2.0-alpha Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckOutputPath

func CheckOutputPath(output *string) (validpath string, err error)

CheckOutputPath checks if output is an existing path and returns its corresponding absolute path if successful. if output is nil or empty then returns an empty path an no error. output is a reference to a string to enable to pass directly the returned value of a flag.String result. Returns an error of the path is not a valid dir.

func CopyFiles

func CopyFiles(dstDir string, src string) (err error)

Copy copies src to dst, can be a single file or a full path

func FillString

func FillString(s string, l int) string

FillLen fills s with blanks to make it a string of length l. If l > len(s) then return s

func MustCheckOutputPath

func MustCheckOutputPath(output *string) string

MustCheckOutputPath checks if output is a valid path and returns its corresponding absolute path if successuf. exit if the output is not nil and an error occurs.

func Normalize

func Normalize(s string) string

func NormalizeUp

func NormalizeUp(s string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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