Documentation ¶
Index ¶
- func ConcatStringsArrays(values ...[]string) []string
- func EnsureAbsolutePathFromWorkspace(workspaceRoot, path string) string
- func LogFlags()
- func LookupEnvOrDefault(key, defaultValue string) string
- func SignalCancelledContext(parentCtx context.Context, signals ...os.Signal) (ctx context.Context, stop context.CancelFunc)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConcatStringsArrays ¶
ConcatStringsArrays flattens each []string in the arguments into a string.
func EnsureAbsolutePathFromWorkspace ¶
EnsureAbsolutePathFromWorkspace returns path if path is absolute; otherwise it is interpretted as relative to workspaceRoot, and filepath.Join(workspaceRoot, path) is returned.
func LookupEnvOrDefault ¶
LookupEnvOrDefault returns os.LookupEnv(key) or defaultValue if the key is not in the environment.
func SignalCancelledContext ¶
func SignalCancelledContext(parentCtx context.Context, signals ...os.Signal) (ctx context.Context, stop context.CancelFunc)
SignalCancelledContext returns a child context and cancellation function. If an incoming signal occurs that is in the signals list, the cancellation function is called.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.