utils

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckError

func CheckError(err error)

func GetArchiveDownloadDirPath

func GetArchiveDownloadDirPath() string

func GetCWD

func GetCWD() string

func GetCondition

func GetCondition(value string, answers map[string]interface{}) (bool, error)

func GetHomeDir

func GetHomeDir() string

func GetLogsFilePath

func GetLogsFilePath() string

func GetScfDirPath

func GetScfDirPath() string

func GetTemplatesDirPath

func GetTemplatesDirPath() string

func IsLocalPath

func IsLocalPath(filePath string) bool

func IsTruthy

func IsTruthy(s string) bool

func JoinPaths

func JoinPaths(paths ...string) string

func ParsePath

func ParsePath(filePath string, values map[string]interface{}) (string, error)

func ParseString

func ParseString(s string, values map[string]interface{}) (string, error)

func ToFullPath

func ToFullPath(path string) string

func ToPath

func ToPath(path string) string

Types

type WithStackTraceError

type WithStackTraceError struct {
	// contains filtered or unexported fields
}

func NewWithStackTraceError

func NewWithStackTraceError(err error) *WithStackTraceError

func (*WithStackTraceError) Error

func (e *WithStackTraceError) Error() string

Jump to

Keyboard shortcuts

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