utils

package
v0.17.1-rc.2 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2022 License: Apache-2.0 Imports: 3 Imported by: 1 module, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 Must added in v0.16.0

func Must(err error)

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