Documentation
¶
Overview ¶
Package helpers provide various convenience functions.
Index ¶
- func BashEscape(in string) string
- func DefaultPGDSN(dbName string) string
- func ExitOnError(err error, msg string)
- func GetCurrentUser() string
- func GetProjectTemplateDir(projectTemplate string) (string, error)
- func GoPaths() []string
- func IsValidGoPath(gopath string) bool
- func RandString(n int) string
- func RecursiveSearchReplaceFiles(fullpath string, replacers map[string]string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BashEscape ¶
BashEscape escapes various characters in bash environment.
func DefaultPGDSN ¶
DefaultPGDSN generates default PostgreSQL DSN path.
func ExitOnError ¶
ExitOnError logs error message in fatal mode.
func GetCurrentUser ¶
func GetCurrentUser() string
GetCurrentUser returns the username of the current user.
func GetProjectTemplateDir ¶
GetProjectTemplateDir returns the path to go-bootstrap's project-templates/ directory
func IsValidGoPath ¶
IsValidGoPath checks if a path is part of the GOPATH
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.