1
0
mirror of https://github.com/woodpecker-ci/woodpecker.git synced 2024-12-06 08:16:19 +02:00
woodpecker/vendor/github.com/drone/envsubst
2017-01-18 22:06:01 +07:00
..
parse envsubst vendor fix 2017-01-18 22:06:01 +07:00
eval.go move to envsubst package 2017-01-18 22:03:38 +07:00
funcs.go move to envsubst package 2017-01-18 22:03:38 +07:00
LICENSE move to envsubst package 2017-01-18 22:03:38 +07:00
match.go move to envsubst package 2017-01-18 22:03:38 +07:00
README move to envsubst package 2017-01-18 22:03:38 +07:00
template.go move to envsubst package 2017-01-18 22:03:38 +07:00

Go package emulates bash environment variable substitution in a string using ${var} syntax. Includes support for bash string replacement functions.

Documentation:

    http://godoc.org/github.com/drone/env

Supported Functions:

    ${var^}
    ${var^^}
    ${var,}
    ${var,,}
    ${var:position}
    ${var:position:length}
    ${var#substring}
    ${var##substring}
    ${var%substring}
    ${var%%substring}
    ${var/substring/replacement}
    ${var//substring/replacement}
    ${var/#substring/replacement}
    ${var/%substring/replacement}
    ${#var}
    ${var=default}
    ${var:=default}
    ${var:-default}

Unsupported Functions:

    ${var-default}
    ${var+default}
    ${var:?default}
    ${var:+default}