utils

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2022 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDevVolumePath

func GetDevVolumePath() string

GetDevVolumePath - Returns the default directory to be used for local development plugins this directory points at a docker volume, used to share data between running containers.

func GetEnv

func GetEnv(key, fallback string) string

GetEnv - Retrieve an environment variable with a fallback

func GetRelativeDevPath

func GetRelativeDevPath(relativePath string) string

GetRelativeDevPath - create a path, relative to the Dev Volume

func SplitPath added in v0.13.0

func SplitPath(p string) []string

SplitPath - splits a path into its component parts, ignoring leading or trailing slashes. e.g - SplitPath("/one/two/three/") == SplitPath("/one/two/three") == SplitPath("one/two/three") == ["one" "two" "three"]

Types

This section is empty.

Jump to

Keyboard shortcuts

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