util

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (

	//	Common Error Codes
	ErrDockerNotFound   = "Is docker running on your machine?"
	ErrServicesNotFound = "No services found currently running for this app"

	//	Common Information Codes
	InfoDockerDownload  = "Download docker from: https://www.docker.com/products/docker-desktop"
	InfoServicesRunning = "Start your app with `nhost dev`"
)

Variables

This section is empty.

Functions

func Contains

func Contains(s []string, e string) bool

check whether source array contains value or not

func DeleteAllPaths

func DeleteAllPaths(path string) error

deletes all the paths leading to the given file/folder and unlink from filesystem

func DeletePath

func DeletePath(path string) error

deletes the given file/folder path and unlink from filesystem

func PathExists

func PathExists(filePath string) bool

validates whether a given folder/file path exists or not

func Rel

func Rel(path string) string

Returns path relative to Nhost current working directory

Types

This section is empty.

Jump to

Keyboard shortcuts

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